Jump to content

  • Log In with Google      Sign In   
  • Create Account


perfectionist

Member Since 10 Sep 2013
Offline Last Active Sep 14 2013 07:01 AM

Topics I've Started

nehe Lesson 1 trouble in Visual Studio wglCreateContext throws access violation exception

10 September 2013 - 11:02 AM

When I downloaded, and upgraded the visual C++ sample code for visual studio 2012, I can build but I'm getting an access violation exception on wglCreateContext.

 

http://nehe.gamedev.net/tutorial/creating_an_opengl_window_(win32)/13001/

 

I've googled around this method call and seen references to it being "dodgy" on some machines - which sounds crazy for something as established as OpenGL.  I'm on Windows 8.

 

I think it might be to do with getting exactly the right OpenGl libraries installed maybe the defaults with VS aren't right?

 

Can anyone help - I'm losing my hair over this and it's the first OpenGl code I've tried to compile on this machine - feels like it should be easy.

 

Thanks,

Tom


PARTNERS