Download and build GLUI

Download the GLUI source code from http://glui.sourceforge.net/
You want Source: glui_v2_2.zip
Once you have downloaded the zip file, extract it to a folder. Inside the folder you will see the source code and a folder called msvc (that stands for Microsoft Visual C). Open that folder and double click on glui.dsw (if you do not see the file extension, it has an icon of an infinity sign).
This will open in either Visual Studio 6.0, or Visual Studio .NET (visual studio 7).
If this window pops up

Then you are using Visual Studio .NET. Select "Yes to All".
We need to make one small change to the code. Go back to the msvc folder, then go one folder up, to the source code. Drag the file "glui.h" into Visual Studio.
You will see toward the top, the following 4 include files:

#include <GL/glut.h> #include <stdlib.h> #include <stdio.h> #include <string.h>
Move the first include to the end, so it looks like this:
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <GL/glut.h>
Save glui.h (ctrl+s or File->save), and then close it.
Now right click on _glui_library in the side column, and select Build.

This will build the GLUI library and put a folder called "lib" in with the source code. In the "lib" folder is a file called glui.lib. Copy this lib file and the glui.h file into a folder called c:\dev\glui (or anywhere you want. The rest of the instructions assume it is in c:\dev\glui).

GLUI is now built and "installed". We need to configure Visual Studio so it knows where to look for the header and library files (which will be used by every program you write that uses GLUI).