Jump to content
  • Advertisement
Sign in to follow this  
pancomplex

WndProc error in my Class

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

Hey.. this has been given me an extreme headache the last 2 hours.. I used the basic code for en GL window from nehe.gamedev.net and have now put it in a separate class and header file. Everything works except for the WndProc which throws the exception that I cannot use it because it can't convert to an overwritten method in this line: wc.lpfnWndProc = (WNDPROC) WndProc; // WndProc Handles Messages I Googled it for a while and found out that I needed to make my WndProc function static but now I have the trouble that the non-static reffrences I use in the WndProc class can't be accessed, and I really need those for a lot of stuff.. So can anyone help me? Thanks!

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!