2013-02-24 41 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

相關問題