如果你遇到如下错误: 1>------ Build started: Project: MapiRule, Configuration: Release Windows Mobile 6 Professional SDK (ARMV4I) ------ 1>Compiling... 1>SMSHelper.cpp 1> WINVER not defined. Defaulting to 0x0400, which is appropriate for all supported Windows CE versions 1>C:/Program Files/Microsoft Visual Studio 8/VC/ce/atlmfc/include/afxv_w32.h(227) : fatal error C1083: Cannot open include file: 'mbctype.h': No such file or directory 1>Build log was saved at "file://d:/Work/Src_Project/MapiRule/Windows Mobile 6 Professional SDK (ARMV4I)/Release/BuildLog.htm" 1>MapiRule - 1 error(s), 0 warning(s) 2>------ Skipped Build: Project: SetupMapiRule, Configuration: Release ------ 2>Project not selected to build for this solution configuration ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ========== 请注意: .cpp 文件中的 #include "stdafx.h" 需要注释掉。 原因是 stdafx.h 引起的混乱。为什么呢?希望高人指点。