View Full Version : ?!?! NeHe OpenGL Tutorial Les.1 ??!?!?!!
When i wrote the code on the tutorial on how to create an OpenGL Window, it ran perfectly until it came upon a memory error. It said something like 0x..... could not reference 0x00000000. Is this supposed to happen? I'm using Microsoft Visual C++ 6.0 under Win 2000.
The error specifically occurs in this line:
I evaluated hDC in the Watch, and it turned out that it was "unused". What is the problem? I am also running the program on 800x600 mode (won't make a difference with 640x480; same error happens both times).
Uh, anyone wanna help out?
Uh..Is that supposed to be an assignment or a condition? = or ==..just checking..
In the tutorial, they had it as an assignment operator, not a conditional operator. I really don't know what is going on. All I know is that the code seems to be faulty. Here is the link to the tutorial. http://nehe.gamedev.net/tutorials/lesson01.asp
Wait a correction. The actual line of error is:
I ran the debugger and after I step over this line, the program crashes (memory error? bad pointer???).
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.