为什么我的一个以前可以编译的程序现在报这个错误呀?请高手指点!!!

MikoBear 2005-03-23 12:32:01
错误信息如下:
Compiling...
StdAfx.cpp
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(367) : error C2039: 'OnSetCursor' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(368) : error C2065: 'Default' : undeclared identifier
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(445) : error C2039: 'OnLButtonDown' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(457) : error C2039: 'OnMouseMove' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(459) : error C2039: 'OnMouseWheel' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(463) : error C2039: 'OnRButtonDblClk' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(465) : error C2039: 'OnRButtonDown' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(467) : error C2039: 'OnRButtonUp' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin2.inl(469) : error C2039: 'OnTimer' : is not a member of 'CWnd'
d:\Append_Program_Installs\Visual_Studio60\VC98\MFC\INCLUDE\afxwin.h(1899) : see declaration of 'CWnd'
Error executing cl.exe.

请那位好心的大侠高手知道一下,小弟万分感谢先!!!

麦克小熊
...全文
82 点赞 收藏 6
写回复
6 条回复
MikoBear 2005年03月26日
谢谢诸位大侠,小弟的问题解决了,VC60出问题了。我恢复了一下就可以了。那两天把我的着急得眼睛都憋蓝了:( 确实是个特别困难的问题。所以万分感谢诸位大侠!过两天我再结贴:)

麦克小熊
回复 点赞
jerry 2005年03月23日
改了什么地方没有?
回复 点赞
rangren 2005年03月23日
少了头文件了吧
回复 点赞
msm 2005年03月23日
应该是把框架生成的代码没注意给改了
回复 点赞
cnwolf 2005年03月23日
你是不是把自己继承的类定义包含在StdAfx.h中了
回复 点赞
carbon107 2005年03月23日
你映射的消息不正确
回复 点赞
发动态
发帖子
VC/MFC
创建于2007-09-28

7901

社区成员

42.1w+

社区内容

VC/MFC相关问题讨论
社区公告
暂无公告