VS2010出现错误 1>c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afx
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.