I have the following code:
class XXX {
LRESULT CALLBACK mywndproc(HWND, UINT, LPARAM, WPARAM); // or WPARAM, LPARAM, doesn't matter
short createawindow();
};
short XXX::createawindow()
{
WNDCLASS wndclass;
...
wndclass.lpfnWndProc = mywindowproc; //!!!
return 0;
}
LRESULT CALLBACK XXX::mywndproc(args...)
{
code
}
so, what's wrong with the line marked with the !!!s?
Why do I get the error msg:
can't convert whatever(__stdcall XXX::*)whaterver to whatever whatever?
I mean, I know that the conversion is invalid, but I still want to use the callback function within my class.