Original Post
I want to make a windows procedure a method inside an object so in my class def i have :
class CRenderWin
{
public:
// constructor
CRenderWin();
// Destructor
~CRenderWin();
// the windows procedure
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
blah blah
}
the i try and set the procedure so :
CRenderWin a;
wndclass.lpfnWndProc = a.WndProc;
i get this error :
error C2440: ''='' : cannot convert from ''long (__stdcall CRenderWin::*)(struct HWND__ *,unsigned int,unsigned int,long)'' to ''long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)''
is it possible to do what i am trying to do? If so how?