Window Procedure
Hi,
I''m making some wrapper classes to encapsulate the Win32 Code from my OpenGL code. I was going to just use MFC but I don''t need the entire MFC library so i just though I''d make the classes i needed. Anyways I designed a class COGLWINDOW which does all the windows stuff(bare minimum i need to run opengl under window) and encpsulates it. This class also contains the WindowProcedure function. In my constructor i set up a window its here i get my error:
wc.lpfnWndProc = (WNDPROC) this->WndProc;
I put the this pointer in just to reiterate that the Wnd Proc is in this class.
The error i get is:
typecast cannot convert from ''''to'' long c_stdcall *)(struct HWND_*, unsigned int, unsigned int, long)''
ECKILLER
ECKILLER
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement