how to set preprocessor definition of _win32_wce in vs08

南笙酒味 提交于 2019-12-10 15:15:03

问题


How to set preprocessor defination in vs08.By default the value of _win32_wce is $(CEVER) set.but when I build the project the error "c1017 invalid integer constant expression" occur.and warning that environment variable $(CEVER) and $(ceplatform) not set. but when I set it _win32_wce=0x0420 then the all errors removes.but its hard coded.I do't want to do such type.so what should be value of _win32_wce. Note that my poject's earliar solution platform was

PocketPC 2003


回答1:


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

_WIN32_WCE=$(CEVER)

and those are inherited properties, do not define it by yourself.

I suppose you try to use it in Desktop compilations, you should always check if it is defined before use.



来源:https://stackoverflow.com/questions/7467546/how-to-set-preprocessor-definition-of-win32-wce-in-vs08

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!