dionchen1
April 1st, 2004, 12:53 PM
Hi,
I am porting a MFC Dialog-based app from VC6 to VC++.NET. I have got the following error. I have user-defined message handler in the CMyTestApp, instead of CMyTestDlg, in the VC6 project. Does thiis error message tell me that I can not have my message handler in the CMyTestApp and the message handler has to be in the CWnd-derived class, such as CMyTestDlg?
Thansk in advance.
Dion
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMyTestApp::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
I am porting a MFC Dialog-based app from VC6 to VC++.NET. I have got the following error. I have user-defined message handler in the CMyTestApp, instead of CMyTestDlg, in the VC6 project. Does thiis error message tell me that I can not have my message handler in the CMyTestApp and the message handler has to be in the CWnd-derived class, such as CMyTestDlg?
Thansk in advance.
Dion
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMyTestApp::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type