VS2005下的错误:error C2440
具体的内容:
从进度条控件类派生新类,并自定义消息
afx_msg LRESULT OnSetText(UINT cchTextMax, LPCTSTR szText);
在VC6.0下正常编译运行,在VS2005下提示如下错误:
e:\my projects\sdesign\sdesign\txtprogressctrl.cpp(43) : error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CTxtProgressCtrl::* )(UINT,LPCTSTR)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
期待高手支招,谢谢!