I am getting
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMyApp::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
The code in my header file looks like:
class CMyApp : public CWinApp
{
public:
LRESULT OnMsg28(WPARAM, LPARAM);
The code in the program looks like:
BEGIN_MESSAGE_MAP(CMyApp, CWinApp)
//{{AFX_MSG_MAP(CMyApp)
ON_MESSAGE(WM_MSG28, OnMsg28)
and
LRESULT CMyApp::OnMsg28( WPARAM wParam, LPARAM lParam )
{
static int zero=0, one=1;
int rc;
<code>
return 0;
}
I have used code like this many times in the past but this is the first time I am running into this problem. I googled this and tried several suggestions but ended up with the same results.