• Advertisement

Archived

This topic is now archived and is closed to further replies.

Wrapping Windows Setup

This topic is 6290 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

Based on Nehe''s tutorial 1 (setting up windows), I''ve made a View Class that contains all the openGl specific stuff. Main.cpp has the rest, including CreateGlWindow. All i''ve done/changed is to put the openGl functions in the View object (which is included as a global in Main.cpp) together with the hDC, hRC, hWnd and hInstance vars. I''m sure i''ve replaced every hDC in CreateGlWindow with View.hDC and so on - but now the program doesnt work. It returns "Window Creation Error" - everything before that point goes smootly. What am I missing? Plese help, I can''t get further without solving this problem :-)

Share this post


Link to post
Share on other sites
Advertisement
By the way: GetLastError gives "wrong parameter" for CreateWindowEx. The parameters are exactly as before, expect for View.hInstance instead of hInstance.

Share this post


Link to post
Share on other sites

  • Advertisement