So basically I just copy + paste the code from LazyFoo or NeHe, and put it into a project and compile it. It's all fine, no build errors.
But when I run it I get an Access Violation:
Code: Select all
Unhandled exception at 0x0431f2c0 in testOGL.exe: 0xC0000005: Access violation
Code: Select all
Unhandled exception at 0x0443f2c0 in testOGL.exe: 0xC0000005: Access violation.
I compiled it in Code::Blocks and it worked.
But I'm not a huge fan of Code::Blocks, I'd rather use VC++.
So anyone have any ideas of what the problem might be? Because at the moment, I haven't the slightest clue of what to do.
Thanks in advance for any responses =D.