how to solve #error : Must define a target architecture in wince mfc application?
how to solve #error : M开发者_开发知识库ust define a target architecture in wince mfc application?i got to know that we need to use device header and libraries but how can i use that?
Presumably, the error is because you're trying to build the application against the (desktop) Windows SDK. The easiest thing to do is to create a new "Win32 Smart Device" project and add your code to it.
Alternatively, check the "Compile for architecture" setting under project properties -> C/C++ and ensure that it is set for the appropriate architecture.
I think you need to globally define some macro like _X86_
in the project options, but I'm not sure.
精彩评论