打开Visual C++ 8.0,新建一个基于对话框的MFC项目,除了使用静态MFC库之外什么都没改,不小心按到F5
------ 已启动生成: 项目: Palette, 配置: Debug Win32 ------
正在编译...
stdafx.cpp
正在编译...
Palette.cpp
c:\william\visual studio\palette\palette\palette.h(26) : error C2236: unexpected 'class' 'CPaletteApp'. Did you forget a ';'?
c:\william\visual studio\palette\palette\palette.h(26) : error C2143: syntax error : missing ';' before ':'
c:\william\visual studio\palette\palette\palette.h(26) : error C2059: syntax error : ':'
c:\william\visual studio\palette\palette\palette.h(26) : error C2059: syntax error : 'public'
c:\william\visual studio\palette\palette\palette.h(27) : error C2143: syntax error : missing ';' before '{'
c:\william\visual studio\palette\palette\palette.h(27) : error C2447: '{' : missing function header (old-style formal list?)
c:\william\visual studio\palette\palette\palette.h(40) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\william\visual studio\palette\palette\palette.h(40) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.h(40) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2825: 'CPaletteApp': must be a class or namespace when followed by '::'
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2039: 'GetMessageMap' : is not a member of '`global namespace''
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2146: syntax error : missing ';' before identifier 'GetMessageMap'
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2040: 'CPaletteApp' : 'const AFX_MSGMAP *' differs in levels of indirection from 'int'
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2270: 'GetMessageMap' : modifiers not allowed on nonmember functions
c:\william\visual studio\palette\palette\palette.cpp(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(15) : error C3861: 'GetThisMessageMap': identifier not found
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2825: 'CPaletteApp': must be a class or namespace when followed by '::'
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2143: syntax error : missing ';' before '`global namespace'::GetThisMessageMap'
c:\william\visual studio\palette\palette\palette.cpp(15) : warning C4229: anachronism used : modifiers on data are ignored
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2040: 'CPaletteApp' : 'const AFX_MSGMAP *' differs in levels of indirection from 'int'
c:\william\visual studio\palette\palette\palette.cpp(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(15) : error C2063: 'GetThisMessageMap' : not a function
c:\william\visual studio\palette\palette\palette.cpp(15) : error C3755: 'GetThisMessageMap': a delegate may not be defined
c:\william\visual studio\palette\palette\palette.cpp(22) : error C2825: 'CPaletteApp': must be a class or namespace when followed by '::'
c:\william\visual studio\palette\palette\palette.cpp(22) : error C2143: syntax error : missing ';' before 'CPaletteApp'
c:\william\visual studio\palette\palette\palette.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(23) : error C2063: 'CPaletteApp' : not a function
c:\william\visual studio\palette\palette\palette.cpp(23) : error C3755: 'CPaletteApp': a delegate may not be defined
c:\william\visual studio\palette\palette\palette.cpp(31) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\william\visual studio\palette\palette\palette.cpp(31) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(31) : error C2086: 'int CPaletteApp' : redefinition
c:\william\visual studio\palette\palette\palette.h(40) : see declaration of 'CPaletteApp'
c:\william\visual studio\palette\palette\palette.cpp(31) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(31) : error C2086: 'int theApp' : redefinition
c:\william\visual studio\palette\palette\palette.h(40) : see declaration of 'theApp'
c:\william\visual studio\palette\palette\palette.cpp(36) : error C2825: 'CPaletteApp': must be a class or namespace when followed by '::'
c:\william\visual studio\palette\palette\palette.cpp(36) : error C2039: 'InitInstance' : is not a member of '`global namespace''
c:\william\visual studio\palette\palette\palette.cpp(36) : error C2146: syntax error : missing ';' before identifier 'InitInstance'
c:\william\visual studio\palette\palette\palette.cpp(36) : error C2086: 'int CPaletteApp' : redefinition
c:\william\visual studio\palette\palette\palette.h(40) : see declaration of 'CPaletteApp'
c:\william\visual studio\palette\palette\palette.cpp(37) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.cpp(48) : error C2352: 'CWinApp::InitInstance' : illegal call of non-static member function
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(4654) : see declaration of 'CWinApp::InitInstance'
c:\william\visual studio\palette\palette\palette.cpp(59) : error C3861: 'SetRegistryKey': identifier not found
c:\william\visual studio\palette\palette\palette.cpp(62) : error C2065: 'm_pMainWnd' : undeclared identifier
PaletteDlg.cpp
c:\william\visual studio\palette\palette\palette.h(26) : error C2236: unexpected 'class' 'CPaletteApp'. Did you forget a ';'?
c:\william\visual studio\palette\palette\palette.h(26) : error C2143: syntax error : missing ';' before ':'
c:\william\visual studio\palette\palette\palette.h(26) : error C2059: syntax error : ':'
c:\william\visual studio\palette\palette\palette.h(26) : error C2059: syntax error : 'public'
c:\william\visual studio\palette\palette\palette.h(27) : error C2143: syntax error : missing ';' before '{'
c:\william\visual studio\palette\palette\palette.h(27) : error C2447: '{' : missing function header (old-style formal list?)
c:\william\visual studio\palette\palette\palette.h(40) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\william\visual studio\palette\palette\palette.h(40) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\william\visual studio\palette\palette\palette.h(40) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Generating Code...
生成日志保存在“file://c:\William\Visual studio\Palette\Palette\Debug\XXXXXXXXXXXm”
Palette - 50 个错误,1 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
200字以内,仅用于支线交流,主线讨论请采用回复功能。