Archived

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

Bad DJ

Wrapping Windows Setup

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