2013-02-24 69 views
5

当我跑我的项目,我得到致命错误:Visual Studio速成2012无法打开包含文件:“WINDOWS.H”:没有这样的文件或目录

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"

+1

也许你应该参考这个http://stackoverflow.com/questions/12770400/missing-header-file-on-a-new-installation-of-visual-studio-2012 – Kanglai 2013-04-24 03:43:11

回答

1

@康莱可能就在这里,但你看到的错误与D3D头相关是不同的。 DX SDK独立于Windows SDK。请参阅MSDN上的这篇文章。

Where is the DirectX SDK?

++处理目录的方式的Visual C在最近的版本已经改变,因此不推荐使用的消息。以下博客文章解释了这些更改以及如何在更新版本的VS中执行相同的操作。

VC++ Directories

相关问题