首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

vc6.0消息vs08上异常解决方法

2013-01-20 
vc6.0消息vs08下错误解决办法? ON_WM_ACTIVATEAPP()afx_msg void OnActivateApp(BOOL bActive, HTASK hTas

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);
应该 可以。

热点排行