VS2017: cannot open source file “Windows.h“

时间:2022-12-31 10:54:13


在VS2017中打开一个VC++项目,#include 行提示 cannot open source file "Windows.h"

VS2017: cannot open source file “Windows.h“

解决方法:

右击Project -> Properties -> General -> Windows SDK Version, 选择 10.0.xxxxx

VS2017: cannot open source file “Windows.h“

 保存,问题解决。

参考:

​c++ - Visual Studio 2017 can't find windows.h - Stack Overflow​