gpt4 book ai didi

有条件地包含适用于 Windows Mobile 的代码

转载 作者:太空宇宙 更新时间:2023-11-04 04:53:06 25 4
gpt4 key购买 nike

我想让我的应用程序代码针对 Windows Mobile 进行不同的编译,因为它的功能较少。

为此,我想编写如下代码:

#ifndef (_windows_mobile_)
//define avaiabilty of features thatare not supported in windows mobile
#endif

我应该使用什么宏?

目标平台是 Windows Mobile 6 专业版。

我去了http://sourceforge.net/p/predef/wiki/OperatingSystems/ , 但宏 _WIN32_WCE 列出在那里未定义。

最佳答案

您应该正确定义项目和构建目标,以便从 Windows CE 平台 SDK 中提取所需的宏和 header ,否则如果使用裸 x86 桌面构建目标进行构建,它将无法工作。

关于有条件地包含适用于 Windows Mobile 的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12931549/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com