Anyone know why this code doesn't work?
I'm absolutely new to Windows Programming and I only wanna learn enough to be able to do OpenGL.
The problem started when I didn't set the hCursor member in the createGLWindow() function but as soon as I set it. It creates the window then hangs. everything compiles without warning or errors.
(code is from tutorial by nehe @ http://nehe.gamedev.net)
Thank you all for your time. Also the appropriate libraries are included in the windows created stdAfx.h and should you require it It's just the:libraries.Code:#include<windows.h> #include<gl/gl.h> //Header for the OpenGL32 Library #include<gl/glu.h> //Header for the GLu32 library #include<gl/glaux.h> //Header for the GLaux library
Thank you all for your time