如何在vs08中设置_win32_wce的预处理器定义 [英] how to set preprocessor definition of _win32_wce in vs08

查看:65
本文介绍了如何在vs08中设置_win32_wce的预处理器定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 vs08 中设置预处理器定义.默认情况下,_win32_wce 的值是 $(CEVER) set.但是当我构建项目时,会出现错误c1017 invalid integer constant expression".并警告环境变量 $(CEVER)和 $(ceplatform) 未设置.但是当我将它设置为 _win32_wce=0x0420 时,所有错误都会被删除.但是它是硬编码的.我不想这样做.所以 _win32_wce 的值应该是多少.注意我的项目早期的解决方案平台是

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

掌上电脑 2003

推荐答案

这个宏:_WIN32_WCE 是由你的平台 SDK 定义的,应该如下定义:

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.

这篇关于如何在vs08中设置_win32_wce的预处理器定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆