I'm sure that there is nothing wrong with my project. Because I have tried it on my ex computer with visual studio 2005 and windows xp pro, and it works error-free.
I can compile my project. There is no errors on build phase.But when I try to run my project it says "*.exe has stopped working".
Then I runned it on debugger mode. I saw that it leads me to that line in glut.h
static int APIENTRY glutCreateWindow_ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); }
I really don't understand why it is not working..
I copied glut32.dll to C:\Windows\System32 glut.h to C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL and glut32.lib to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib