Jump to content
  • Advertisement
Sign in to follow this  
AlvaroLou

OpenGL Code Opengl window creation

This topic is 5044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I send u the code that creates my opengl window, this code will be executed after the user clicks a button: void CWindowsOpengl1Dlg::OnOK() { // TODO: Add extra validation here MSG msg; // Windows Message Structure BOOL done=FALSE; //Bool Variable To Exit Loop // Create Our OpenGL Window if (!ventana.CreateGLWindow("NeHe's Rotation Tutorial",640,480,16,false)) { return; // Quit If Window Was Not Created } CDialog::OnOK(); } I create a class that contains all the functions that create an opengl window (NeHe lesson 1) and ventana is an object of this class, so I call the function Ventana.CreateGLWindow. The program gives me a rutime exection error when I push the button that says: "Unhandled Exception in WindowsOpengl1.exe:0xC0000005 Access Violation". I would like to post the whole ziped project but I think it is not possible.

Share this post


Link to post
Share on other sites
Advertisement
You should run a debugger and find out where it really crashes. The code you posted seems correct, i guess that's probably not the part where your program crashes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!