Wrapping Windows Setup

Started by
0 comments, last by Bad DJ 23 years, 5 months ago
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 :-)
Advertisement
By the way: GetLastError gives "wrong parameter" for CreateWindowEx. The parameters are exactly as before, expect for View.hInstance instead of hInstance.

This topic is closed to new replies.

Advertisement