error C2440: “static_cast”: 无法从“UINT (__thiscall CTestDlg::* )(CPoint)”转换为
来源:互联网 发布:大图分割打印软件 编辑:程序博客网 时间:2024/06/01 11:12
从vc6转移到vs2008 发生下面问题:
BEGIN_MESSAGE_MAP(CTestDlg, CCaptionBtnDlg)
ON_WM_NCHITTEST() //vs2005 检测错误在这里
END_MESSAGE_MAP()
afx_msg UINT OnNcHitTest(CPoint point);
UINT CTestDlg::OnNcHitTest(CPoint point)
{
....
}
解决方法:
afx_msg UINT OnNcHitTest(CPoint point); //函数的声明
UINT CTestDlg::OnNcHitTest(CPoint point) //函数的定义
=>
afx_msg LRESULT OnNcHitTest(CPoint point);
LRESULT CTestDlg::OnNcHitTest(CPoint point)
- error C2440: “static_cast”: 无法从“UINT (__thiscall CTestDlg::* )(CPoint)”转换为
- error C2440: “static_cast”: 无法从“UINT (__thiscall CTestDlg::* )(CPoint)”转换为
- error C2440: “static_cast”: 无法从“UINT (__thiscall CXXX::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )
- error C2440: “static_cast”: 无法从“UINT (__thiscall CMainWindow::* )(CPoint)”转换为“LRESULT (__thiscall CW
- “static_cast”: 无法从“UINT (__thiscall CSizingControlBar::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )
- 错误“static_cast”: 无法从“UINT (...)(CPoint)”转换为“LRESULT (...)(CPoint)
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARAM,LPARAM)”
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARA
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARA
- error C2440: “static_cast”: 无法从“void (__thiscall CMyDlg::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall
- error C2440: “static_cast”: 无法从“void (__thiscall CXXDlg* )(void)”转换为“LRESULT (__thiscall CWnd:的错误
- error C2440: “static_cast”: 无法从“void (__thiscall CVCadView::* )(int)”转换为“void (__thiscall CCmdTarget
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__t
- error C2440: “static_cast”: 无法从“void (__thiscall CTransparentWnd::* )(WPARAM,LPARAM)”转换为“LRESULT (__
- Finding iPhone Memory Leaks: A “Leaks” Tool Tutorial
- 在Mobile Web Form中使用javascript
- 判断是否点击在listctrl的checkbox上
- Linux中open函数详解
- 关于java内存
- error C2440: “static_cast”: 无法从“UINT (__thiscall CTestDlg::* )(CPoint)”转换为
- Debug - Remote Debugger
- 嵌入式技术开发学习经验
- VB.NET两个LISTBOX进行交换数据
- javascript中括号的含义,比较容易混淆
- 程序员要学会思考,总结
- linux——时间编程
- 基于ACIS/HOOPS的3D应用开发简介
- window系统 temp用户 相关问题