error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CConnectThread::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
消息函数的声明为:
afx_msg LRESULT OnThreadMessage(WPARAM wParam,LPARAM IParam);
定义为:
LRESULT CConnectThread::OnThreadMessage(WPARAM wParam,LPARAM IParam)
{
return 0;
}
消息函数的返回值和参数都是正确的,VS2008 为什么还是报上面的错呢?根据是什么?