• Advertisement
Sign in to follow this  

WndProc error in my Class

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