[問題] MFC 移植的問題
( *[1m *[m 為色碼,可以按 Ctrl+V 預覽會顯示的顏色 )
( 未必需要依照此格式,文章條理清楚即可 )
遇到的問題: (題意請描述清楚)
VC 6.0移植VC 2010版的ON_MESSAGE定義不同的問題
希望得到的正確結果:
解決移植問題
程式跑出來的錯誤結果:
error C2440: 'static_cast' : cannot convert from 'int
(__thiscall CSIP_CORE::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )
(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
開發平台: (例: VC++ or gcc/g++ or Dev-C++, Windows or Linux)
VC 2010
有問題的code: (請善用置底文標色功能)
ON_MESSAGE(SIP_MESSAGE_EVENT,SIP_Event_Proc)
.
.
.
int CSIP_CORE::SIP_Event_Proc(WPARAM wParam, LPARAM lParam)
{
.
.
.
return 0;
}
補充說明:
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.110.174
推
11/12 17:00, , 1F
11/12 17:00, 1F