问题1:
fatal error RC1015: cannot open include file 'winresrc.h'.
解决方法:
打开项目的Properties->Resources->General->Preprocessor Definitions,在其中添加如下标识_WIN32_WCE=$(CEVER);NDEBUG;UNDER_CE;
问题2:
fatal error LNK1112: module machine type 'ARM' conflicts with target machine type 'X86'
解决方法:
打开项目的Properties->Linker->Advanced->Target Machine,将其设置为MachineARM(/MACHINE:ARM)
问题3:
fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
解决方法:
同上,只是将MachineARM(/MACHINE:ARM)改为MachineTHUMB(/MACHINE:THUMB)
问题解决,程序成功在WinCE上运行!!!