Hi all,
I'm having an issue converting some code that compiled in VC++ 6.0 fine, but is not in .net 2003.
I've scoured the internet, and found a lot of solutions to problems were related to this error, but nothing for this particular issue.
The error I'm receiving from the compiler is:
The offending line of code is:filename.cpp(88): error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ClassName::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
The function's prototype:Code:BEGIN_MESSAGE_MAP(ClassName, CWinApp) . . . ON_MESSAGE(WM_USER,SaveAllModDBTF)
The function's header:Code:afx_msg LRESULT SaveAllModDBTF(WPARAM, LPARAM);
Does anyone have any ideas about what the issue could be? Let me know if any additional information is required.Code:LRESULT ClassName::SaveAllModDBTF(WPARAM wParam,LPARAM lParam)




Reply With Quote