问题
how to solve #error : Must 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?
回答1:
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.
回答2:
I think you need to globally define some macro like _X86_
in the project options, but I'm not sure.
来源:https://stackoverflow.com/questions/4677195/how-to-solve-error-must-define-a-target-architecture-in-wince-mfc-application