在vc ++中_win32_wce的值应该是什么 [英] what should be value of _win32_wce in vc++

查看:117
本文介绍了在vc ++中_win32_wce的值应该是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在vc08中更改dll的平台,解决方案平台是32bit.但是此dll在vc6.0中,并且平台是Pocket PC 2003(ARMV4).现在的问题是致命错误c1017无效整数常数表达式.我研究了代码,并认为_WIN32_WCE未设置.因此值应该是什么.

I am changing the plateform of the dll in vc08 and solution plateform is 32bit.but this dll was in vc6.0 and the the plateform was pocket pc 2003(ARMV4).now the problem is that the fatal error c1017 invalid integer constant expression. I studied the code and I think the _WIN32_WCE not set.So what the value should be.

推荐答案

_WIN32_WCE 是#define值( Windows CE Platform SDK的头文件中定义的Windows CE版本).在编译Windows台式机的代码时,Windows CE文件将不包含在您的应用程序中.因此,编译器将找不到为 _WIN32_WCE 宏定义的值.

因此,您的代码可能看起来像这样

_WIN32_WCE is the #define value (Windows CE Version) defined in Windows CE Platform SDK''s header files. As you''re compiling the code for Windows Desktop PC, the Windows CE files will not be included into your application. Because of which compiler will not find the value defined for _WIN32_WCE macro.

Hence your code that might be looking like this

#if _WIN32_WCE
.....
#endif 



将不会被编译.

如果代码是特定于设备的,则可以将其注释掉.



will not get compiled.

If the code is device specific, you can comment it out.


这篇关于在vc ++中_win32_wce的值应该是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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