--------------------Configuration: hello World - Win32 Debug--------------------
Compiling...
hellp.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(21) : error C2556: 'bool __thiscall ChelloApp::InitInstance(void)' : overloaded function differs only by return type from 'int __thiscall ChelloApp::InitInstance(void)'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(16) : see declaration of 'InitInstance'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(21) : error C2371: 'InitInstance' : redefinition; different basic types
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(16) : see declaration of 'InitInstance'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(22) : error C2061: syntax error : identifier 'ChelloFrame'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.hello World.exe - 102 error(s), 0 warning(s)有这么多,我晕倒了
Compiling...
hellp.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(21) : error C2556: 'bool __thiscall ChelloApp::InitInstance(void)' : overloaded function differs only by return type from 'int __thiscall ChelloApp::InitInstance(void)'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(16) : see declaration of 'InitInstance'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(21) : error C2371: 'InitInstance' : redefinition; different basic types
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(16) : see declaration of 'InitInstance'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(22) : error C2061: syntax error : identifier 'ChelloFrame'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : error C2143: syntax error : missing ';' before '}'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(26) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.hello World.exe - 102 error(s), 0 warning(s)有这么多,我晕倒了
2----->ChelloApp != CHelloApp
// end
Compiling...
hellp.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(15) : error C2059: syntax error : '{'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(15) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(22) : error C2555: 'CHelloApp::InitInstance' : overriding virtual function differs from 'CWinApp::InitInstance' only by return type or calling convention
d:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(4031) : see declaration of 'CWinApp'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(29) : error C2460: 'HelloApp' : uses 'CHelloApp', which is being defined
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(12) : see declaration of 'CHelloApp'
C:\Program Files\Microsoft Visual Studio\MyProjects\hello World\hellp.cpp(30) : fatal error C1004: unexpected end of file found
Error executing cl.exe.hellp.exe - 5 error(s), 0 warning(s)
Compiling...
hellp.cpp
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/hellp.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.hellp.exe - 4 error(s), 0 warning(s)
这是为什么呀?
高手教我一下呀?
{
m_pMainWnd = new ChelloFrame();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
//
CHelloApp HelloApp;
是不是你定义倒了,在我的印象中应用程序对像应该是在InitInstance之前生成的。
这个程序我写过,主要因为这是一个MFC程序,但是你没有在工程中包含MFC类,解决方法是:Program/Setting/General/Microsoft Foundation Classes 中设定using mfc class,保证没错。