I have a class called CWindowFrame which can create a window. My problem is that I cannot have the WndProc static as I want it virtual too. Anyway, when specifying the WNDCLASSEX lpfnWndProc = (WNDPROC)WinProc; I get the following error:
What might be the problem?Code:
'=' : cannot convert from 'long (__thiscall CWindowFrame::*)(struct HWND__ *, unsigned int, unsigned int, long) ' to 'long (__stdcall*)(struct HWND__ *, unsigned int, unsigned int, long)'