编译期间出现 VC6 和奇怪的 WINVER 消息

发布于 2024-07-07 04:10:38 字数 599 浏览 7 评论 0原文

我在 VC6 项目编译中收到以下消息:

OTE:WINVER 已被定义为 0x0500 或更高,这使得 Windows NT 5.0 和 Windows 98 功能。 当这些标头被发布时, 当前版本是Windows NT 5.0 beta 1 和Windows 98 beta 2.1。 对于此版本,当 WINVER 定义为 0x0500 或更大时,您只能 构建测试版或测试应用程序。 要构建零售应用程序, 将 WINVER 设置为 0x0400 或访问 http://www.microsoft.com/msdn/sdk 查看零售 Windows NT 5.0 或 Windows 98 标头是否可用。 有关详细信息,请参阅 SDK 发行说明。

知道发生了什么事吗?

它构建和链接良好。

我的 XP 机器上有 VC6、VS2005 和 2008。

也许我的 Platform SDK 不是最新的?

I get the following message in a VC6 project compile:

OTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.

Any idea what is going on?

It builds and links fine.

I have VC6, VS2005 and 2008 on my XP machine.

Perhaps my Platform SDK is not up to date?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

荒路情人 2024-07-14 04:10:38

您看到的警告消息来自随 Visual C++ 6.0 安装提供的 Platform SDK,该消息似乎可以追溯到 Windows 2000 处于测试阶段时。

如果您的应用程序要求 WINVER0x0500,并且您仍然需要使用 Visual C++ 6.0,我建议您安装更新的 Platform SDK。 根据 这篇博文,与 Visual C++ 6.0 兼容的最新 Platform SDK 是 2003 年 2 月版本。 (此处还有另一篇文章可能有用。 )

不过,请注意 - 我不知道 2003 年 2 月的 Platform SDK 是否会与您安装的 Visual Studio 2005 和 2008 共存。

The warning message you're seeing is from the Platform SDK that was supplied with the Visual C++ 6.0 installation, which it seems dates from when Windows 2000 was in beta.

If your application requires WINVER to be 0x0500, and you still need to use Visual C++ 6.0, I would recommend that you install a more recent Platform SDK. According to this blog post, the most recent Platform SDK that is compatible with Visual C++ 6.0 is the February 2003 edition. (There's another post here that may be useful.)

A word of caution, though - I don't know whether the February 2003 Platform SDK will coexist with your Visual Studio 2005 and 2008 installations.

美人如玉 2024-07-14 04:10:38

或者 VC6 的包含路径不包含您的 SDK,它仅使用 VC6 附带的 SDK。

Or VC6's include path doesn't include your SDK and it's only using the ones that came with VC6.

风尘浪孓 2024-07-14 04:10:38

您是否安装了最新的 VC6 Service Pack?

Did you installed the latest VC6 Service pack?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文