WndProc error in my Class
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement