VS2010出现错误 1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afx

songcser 2012-08-03 05:28:35
VS2010 中的错误 其中删了一部分了。
使用VS2010 导入一个工程 dubug时出现这种错误,大家看看这错误还有的救吗???

1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C3646: '_Type' : unknown override specifie
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): warning C4183: 'InitCommonControls': missing return type; assumed to be a member function returning 'int'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): warning C4183: 'm__InitCommonControls': missing return type; assumed to be a member function returning 'int'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C3646: '_Type' : unknown override specifier
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C3646: 'GetProcAddress_InitCommonControls' : unknown override specifier
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2091: function returns function
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2091: function returns function
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2556: 'int (__cdecl *(__cdecl *CComCtlWrapper::InitCommonControls(void))(void))(void)' : overloaded function differs only by return type from 'int CComCtlWrapper::InitCommonControls(void)'
1> c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230) : see declaration of 'CComCtlWrapper::InitCommonControls'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2040: 'CComCtlWrapper::InitCommonControls' : 'int (__cdecl *(__cdecl *(void))(void))(void)' differs in levels of indirection from 'int (void)'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): warning C4183: 'InitCommonControls': missing return type; assumed to be a member function returning 'int'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2059: syntax error : 'if'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2059: syntax error : 'return'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2238: unexpected token(s) preceding ';'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2628: 'CComCtlWrapper' followed by 'void' is illegal (did you forget a ';'?)
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2091: function returns function
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C2561: '_InitCommonControls' : function must return a value
1> c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230) : see declaration of '_InitCommonControls'
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(230): error C3861:
1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h(295): error C2660: 'GetModuleHandleA' : function does not take 0 arguments
1>Build FAILED.
...全文
1285 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
franzhong 2012-08-03
  • 打赏
  • 举报
回复
顺错误一个个解决,_Type是什么
错误多少无所谓,那都是一个错误导致连锁反应
第一个解决了说不定下面全正确了
allenltiverson 2012-08-03
  • 打赏
  • 举报
回复
你不会点错误列表么?

65,208

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧