jjzjj

c++ - 'Windows.h : No such file or directory"error when changing Platform Toolset to v140_xp

coder 2024-02-18 原文

<分区>

我尝试为 Windows XP 编译一个应用程序;正常的可执行文件给出错误:

"... is not a valid Win32 application."

我读到我可以通过将平台工具集更改为 Visual Studio 2015 - Windows XP (v140_xp) 来创建与 XP 兼容的可执行文件,但是当我这样做然后尝试编译时,它给了我以下错误:

Cannot open include file: 'Windows.h': No such file or directory

Could not find WindowsSdkDir_71A variable from registry. TargetFrameWorkVersion or Platform toolset may be set to an invalid version number.

如何使用此工具集版本进行编译?

有关c++ - 'Windows.h : No such file or directory"error when changing Platform Toolset to v140_xp的更多相关文章

随机推荐