Opengl in VC++ win32 console application

I  am  doing openGL using C++ in VS2005  with GLUT...When I include glut.h I am getting error messgaes like " Not able to include glut.h / could not find glut.h".
 Do I want to download and Install glut kit, if it is true where I can dowload?
Give me the step by step instructions for me to use GLUT in my c++ program........
Waiting for the reply.......
My c++ code using opengl with Glut
#include <windows.h>            // Header File For Windows
//#include <gl\gl.h>                  // Header File For The OpenGL32 Library
//#include <gl\glu.h>                  // Header File For The GLu32 Library
#include <glut.h>            // Header File For The Glaux Library
void main()
      // These are the AUX functions to set up the win dow
glutInitDisplayMode(AUX_SINGLE | AUX_RGBA);
glutInitWindow("My first OpenGL Program");
      // These are the OpenGL functions that do something in the window
glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
// Stop and wait for a keypress
cprintf("Press any key to close the Window \n");


Who is Participating?
primeMover2004Connect With a Mentor Commented:
Here's GLUT:

Here's the step-by-step instructions for using GLUT (install etc.) with VS 2005:
>>" Not able to include glut.h / could not find glut.h".

Make sure that the path where these files reside is present in your project settings. To set that, right-click on your project in the solution view, go to "Configuration Properties", "C/C++|General" and and add the path to the field "Additional Include Directories"
jsbsudhaAuthor Commented:
thank you very much....
Can you explain the below  main function  why it takes two arguments...
int main(int argc, char **argv)
int main(int argc, char **argv)

here "argc" is the "argument count"
which is the number of (command line) arguments passed to the main function.
these arguments are passed as strings: char** argv represents this list of strings.

argv is an array of strings and argc tells you, how many strings in this array are.

All Courses

From novice to tech pro — start learning today.