Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 perfectionist   Members   -  Reputation: 104

Like
0Likes
Like

Posted 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



Sponsor:

#2 Petrov_VA   Members   -  Reputation: 592

Like
0Likes
Like

Posted 11 September 2013 - 07:13 PM

In Russian NeHe's site LessonsCode_2010.7z . In directory GLSummaryCode project GLSummary.sln,in directory LessonsGLCode all the projects adopted to MS VS 2010(easily jump to MS VS 2012). Also there are three articles in Russian  using NeHe's OpenGL lessons in MFC about. If anybody interested in I'll provide English version of articles above.

Best Regards,

Vladimir Petrov.



#3 Petrov_VA   Members   -  Reputation: 592

Like
0Likes
Like

Posted 11 September 2013 - 07:13 PM

In Russian NeHe's site LessonsCode_2010.7z . In directory GLSummaryCode project GLSummary.sln,in directory LessonsGLCode all the projects adopted to MS VS 2010(easily jump to MS VS 2012). Also there are three articles in Russian  using NeHe's OpenGL lessons in MFC about. If anybody interested in I'll provide English version of articles above.

Best Regards,

Vladimir Petrov.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS