vc6.0消息vs08下错误解决办法?
ON_WM_ACTIVATEAPP()
afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
error C2440: “static_cast”: 无法从“void (__thiscall CColourPopup::* )(BOOL,HTASK)”转换为“void (__thiscall CWnd::* )(BOOL,DWORD)”
[解决办法]
afx_msg void OnActivateApp(BOOL bActive, DWORD hTask);
[解决办法]
“error C2440: “static_cast”: 无法从“void (__thiscall CColourPopup::* )(BOOL,HTASK)”转换为“void (__thiscall CWnd::* )(BOOL,DWORD)”
是说:
1.(BOOL,HTASK) 与 (BOOL,DWORD) 不一样
2.(__thiscall CColourPopup::* ) 与 (__thiscall CWnd::* ) 不一样。
3楼:afx_msg void OnActivateApp(BOOL bActive, DWORD hTask);
应该 可以。