How to set _win32_wce preprocessor definition in vs08

How to install preprocessor protection in vs08. By default, the value of _win32_wce is $ (CEVER) set.but, when I create the project, the error "c1017 is an invalid integer constant expression" and warns that the environment variable $ (CEVER) and $ (ceplatform) are not set. but when I set it _win32_wce = 0x0420, then all errors are deleted. But its hardcoded. I do not want to do this type. So that should be the value of _win32_wce. Note that my poich earliar solution platform was

PocketPC 2003

+4
source share
1 answer

This macro: _WIN32_WCE is defined by the platform SDK platform, this should be defined as follows:

_WIN32_WCE=$(CEVER) 

and these are inherited properties, do not define them yourself.

Suppose you are trying to use it in Desktop compilations, you should always check if this is defined before use.

+2
source

All Articles