Adding GLUT to Visual Studio

For some reason I can’t get all the threads in this topic so I may be asking a question that has been answered.

I am trying to get freeglut installed in Visual Studio 2015 for C# winforms applications. I have finally found what I believe is the correct reference - glut.dll. I have downloaded it, unzipped it and placed it in a directory of its own. However, when I try to reference it in VS I get the following error message:

A reference to ‘D:\GLUT Files\glut.dll’ could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component.

I’m sure the file is accessible since this is the way I accessed all the OpenGL .dll’s. There must be something wrong with the .dll file but I don’t know what. How can I reference this to allow its use in VS? If this isn’t the correct .dll file where can I find the correct one.

Thanks for any help,

Andy Cruce

This guide will show you how to set up a Visual Studio OpenGL/GLUT project that will compile in both Windows and Linux, as long as it is a pure OpenGL program. This guide also assumes Visual Studio .NET 2003 (and/or 2002) is already installed and you are familiar with its use.
http://www.just.edu.jo/~yaser/courses/cs480/opengl/Using%20OpenGL%20and%20GLUT%20in%20Visual%20Studio.htm

You need glut32.dll, not glut.dll.
Some more information and links to downlands can be found here: https://www.opengl.org/resources/libraries/glut/

GLUT (pronounced like the glut in gluttony) is the OpenGL Utility Toolkit, a window system independent toolkit for writing OpenGL programs. It implements a simple windowing application programming interface (API) for OpenGL. GLUT makes it considerably easier to learn about and explore OpenGL programming. GLUT provides a portable API so you can write a single OpenGL program that works across all PC and workstation OS platforms.