WINVER未定义。默认为0x0400。 [英] WINVER not defined. Defaulting to 0x0400.
本文介绍了WINVER未定义。默认为0x0400。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
WINVER未定义。默认为0x0400,适用于所有支持的Windows CE版本
如何删除此警告。
我移植了我的winCE项目从ppc2003到WM5。
请回复是否有人可以帮助我。
谢谢
Vickey
解决方案
转到项目设置 - > C / C ++ - >预处理器
添加WINVER = 0xxx( 0xxx是你需要的版本号。
我不知道什么是适当的0xxx。
如果你给0x0400并且它没有显示任何错误,我认为它会没事的。
如果显示错误,主要是未声明的标识符X。转到Windows标题中的X防御,你可能会发现它上方的#if WINVER> = xxx。在预处理器中使用此xxx值
通常,它将添加到stdafx.h中,如下所示
// 注意 - 这个值与Windows没有很强的相关性目标CE OS版本
#define WINVER _WIN32_WCE
WINVER not defined. Defaulting to 0x0400, which is appropriate for all supported Windows CE versions
How can i remove this warnning.
I have ported my winCE project from ppc2003 to WM5.
Please reply if anyone can help me out.
Thanks
Vickey解决方案go to project settings->C/C++->Preprocessor
add WINVER=0xxx (0xxx is the version number one you need).
I dont know what is the approprate 0xxx.
if you give 0x0400 and it doesnt show any errors, i think it will be fine.
if it shows an error, mostly "undeclared identifier X". go to defention of X in windows headers, you may find #if WINVER >= xxx above it. use this xxx value within the preprocessor
Typically, it is added to stdafx.h as the following
// NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted #define WINVER _WIN32_WCE
这篇关于WINVER未定义。默认为0x0400。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文