社区
C++ 语言
帖子详情
error C2440: “static_cast”: 无法从“void (__cdecl CIVSDlg::* )(UINT)”转换为“void (
kobehjk
2014-03-12 05:12:03
错误 2 error C2440: “static_cast”: 无法从“void (__cdecl CIVSDlg::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)”
这是VS版本的问题吧,可是要怎么改才行啊
...全文
982
6
打赏
收藏
error C2440: “static_cast”: 无法从“void (__cdecl CIVSDlg::* )(UINT)”转换为“void (
错误2error C2440: “static_cast”: 无法从“void (__cdecl CIVSDlg::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)” 这是VS版本的问题吧,可是要怎么改才行啊
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
YouNeverCanTell
2014-10-24
打赏
举报
回复
mfc 没入门!
落日流沙
2014-10-22
打赏
举报
回复
楼主已解决,函数重新换一种声明,按照提示来。
落日流沙
2014-10-22
打赏
举报
回复
“static_cast”: 无法从“void (__cdecl *)(UINT,CPoint)”转换为“void (__thiscall CWnd::* )(UINT,CPoint)” 到这里了
落日流沙
2014-10-22
打赏
举报
回复
楼主这个问题你解决了没啊,我也遇到类似的了 “static_cast”: 无法从“void (__cdecl *)(UINT,POINT)”转换为“void (__thiscall CWnd::* )(UINT,CPoint)
merlinfang
2014-03-13
打赏
举报
回复
错误报的很清楚呢,要传入UINT_PTR, 你传入的是UINT
kobehjk
2014-03-12
打赏
举报
回复
各位大神
求救啊
C2440
: '
static
_
cas
t' : cannot convert from '
void
(__
cd
ecl
CFrProgress
Dlg
::* )(U
INT
)' to '
void
(__
cd
e
32位
转换
成64位编译器,编译后出现如下编译错误:
error
C2440
: '
static
_
cas
t' : cannot convert from '
void
(__
cd
ecl
CFrProgress
Dlg
::* )(U
INT
)' to '
void
(__
cd
ecl
CWnd::* )(U
INT
_PTR)'出现错误的一行为: ON_WM_TIMER()解决方法:afx_msg
void
OnTim...
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall...”
转换
为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)
遇到
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall CMyclass::* )(
void
)”
转换
为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)” 怎么处理?
error
C2440
: “
static
_
cas
t”:
无法
从“LRESULT (__thiscall CSeparateThread::* )(WPARAM,LPARAM)”
转换
为“LRE
报错信息:错误 1
error
C2440
: “
static
_
cas
t”:
无法
从“LRESULT (__thiscall CSeparateThread::* )(WPARAM,LPARAM)”
转换
为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”问题原因:由VC++6.0开发平台编译的项目工程,用更高级的编译软件比如
VS
2010编译会出现这种现象;1)将定义的LRESULT返回值修改成
void
,将声明和方法都要改掉,然后删掉return语句。
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall CMainFrame::* )(
void
)”
转换
为“LRESULT (__thiscall CWnd
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall CMainFrame:
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall CChat
Dlg
::* )(WPARAM,LPARAM)
当用
VS
2010打开VC6的程序时会出现以下问题:
error
C2440
: “
static
_
cas
t”:
无法
从“
void
(__thiscall CChat
Dlg
::* )(WPARAM,LPARAM)”
转换
为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”从基类型到派生类型的强制
转换
需要 dynamic_
cas
t 或
static
_
cas
t 由V...
C++ 语言
65,199
社区成员
250,520
社区内容
发帖
与我相关
我的任务
C++ 语言
C++ 语言相关问题讨论,技术干货分享,前沿动态等
复制链接
扫一扫
分享
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
请不要发布与C++技术无关的贴子
请不要发布与技术无关的招聘、广告的帖子
请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下
试试用AI创作助手写篇文章吧
+ 用AI写文章