【问题标题】:Visual studio express 2012 cannot open include file: 'windows.h': No such file or directoryVisual Studio Express 2012 无法打开包含文件:'windows.h':没有这样的文件或目录
【发布时间】:2014-04-16 06:28:45
【问题描述】:

当我运行我的项目时,我遇到了致命错误:

 Cannot open include file: 'windows.h': No such file or directory
 Cannot open include file: 'd3d11.h': No such file or directory
 Cannot open include file: 'd3dx11.h': No such file or directory

我已经安装了SDK,有人告诉我必须设置正确的SDK目录路径,但我不知道在哪里做,在Tools->Options->Projects和解决方案我看到"Option has been deprecated"

【问题讨论】:

标签: visual-studio visual-c++


【解决方案1】:

@Kanglai 可能就在此处,但您看到的与 D3D 标头相关的错误有所不同。 DX SDK 与 Windows SDK 分开提供。请参阅 MSDN 上的这篇文章。

Where is the DirectX SDK?

Visual C++ 处理目录的方式在最近的版本中发生了变化,因此出现了弃用消息。以下博客文章解释了这些更改以及如何在较新版本的 VS 中执行相同的操作。

VC++ Directories

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-20
    • 2010-09-09
    • 1970-01-01
    • 2017-07-04
    • 2013-11-05
    • 2014-05-07
    • 2017-02-22
    • 2013-11-01
    相关资源
    最近更新 更多