// 避免了pch文件问题,重新建立新的工程项目[New Project20140509],这次建立的是空项目
// copy 书上窗口完整代码 到 新建立的c++ source 文件[project32.cpp]里
// 编译运行出错:
--------------------Configuration: New Project20140509 - Win32 Debug--------------------
Compiling...
Project32.cpp
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(27) : error C2065: 'WNDCLASwndclass' : undeclared identifier
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(30) : error C2065: 'wndclass' : undeclared identifier
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(30) : error C2228: left of '.style' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(32) : error C2228: left of '.lpfnWndProc' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(34) : error C2228: left of '.cbClsExtra' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(36) : error C2228: left of '.cbWndExtra' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(38) : error C2228: left of '.hInstance' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(40) : error C2228: left of '.hIcon' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(42) : error C2228: left of '.hCursor' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(44) : error C2228: left of '.hbrBackground' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(46) : error C2228: left of '.lpszMenuNam' must have class/struct/union type
c:\program files (x86)\microsoft visual studio\myprojects\new project20140509\project32.cpp(48) : error C2228: left of '.lpszClassName' must have class/struct/union type
执行 cl.exe 时出错.
Project32.obj - 1 error(s), 0 warning(s)
// 这次问题感觉容易些:2个语法问题,都纠正了.
// 编译过程完美通过了,无warning ,无 error
// 链接过程出错了:
--------------------Configuration: New Project20140509 - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "Debug/New Project20140509.exe"
执行 link.exe 时出错.
New Project20140509.exe - 1 error(s), 0 warning(s)