WndProc error in my Class

Started by
1 comment, last by pancomplex 15 years, 11 months ago
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!
Advertisement
Read. You don't need all the mapping stuff; just pay attention to the message router bit.
Ahh cool! Thanks dude :)

This topic is closed to new replies.

Advertisement