Sign in to follow this  

WndProc error in my Class

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 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this