Original Post
Im trying to create a DirectX Window class that has virtual functions so the deriving class can override them.
Anyway, Im trying to create the windows, but I get this error
error C2440: ''='' : cannot convert from ''LRESULT (__stdcall CDXWindow::* )(HWND,UINT,WPARAM,LPARAM)'' to ''WNDPROC''
The line is this piece of code
win.lpfnWndProc = GameProc;
GameProc is defined as
virtual LRESULT CALLBACK GameProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
Typecasting didn''t work of course. Any suggestions?