gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:35:33 25 4
gpt4 key购买 nike

<分区>

我尝试为 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.

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

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