简体   繁体   English

如何找到 d3dx9.h 错误的 DirectX 位置

[英]How to find DirectX loctation for d3dx9.h error

I don't nnow the location of my DirectX so is there a wway to find it?我不知道我的 DirectX 的位置,有没有办法找到它?

I need it for fixing this: #include <d3dx9.h> error我需要它来解决这个问题:#include <d3dx9.h> 错误

The d3dx9.h legacy utility library for Direct3D 9 is only available in the DirectX SDK. Direct3D 9 的d3dx9.h旧实用程序库在 DirectX SDK 中可用。 June 2010 is the last release of the DirectX SDK and is on Microsoft Downloads --although not for long per this . 2010 年 6 月是 DirectX SDK的最后一个版本,并且在Microsoft 下载中——尽管时间不长。

Note that with Visual C++ 2012 or later, you must take special care when referencing the legacy DirectX SDK include/lib paths because they contain headers older than the Windows 8.x SDK/Windows 10 SDK used by Visual C++ so they can cause conflicts. Note that with Visual C++ 2012 or later, you must take special care when referencing the legacy DirectX SDK include/lib paths because they contain headers older than the Windows 8.x SDK/Windows 10 SDK used by Visual C++ so they can cause conflicts. Details on covered at the bottom of this page .详情见本页底部。

D3DX9, D3DX10, D3DX11, and the DirectX SDK are all deprecated. D3DX9、D3DX10、D3DX11 和 DirectX SDK 均已弃用。 See this blog post .请参阅此博客文章

The general recommendation is to NOT use Direct3D 9 at all and instead use Direct3D 11 or later.一般建议是根本不使用 Direct3D 9,而是使用 Direct3D 11 或更高版本。 All required Direct3D includes/libs for DirectX 11 & DirectX 12 are included in the Windows SDK. DirectX 11 和 DirectX 12 所需的所有 Direct3D 包含/库都包含在 Windows SDK 中。

For a list of modern replacements for the contents in the old D3D9X/D3DX10/D3DX11 utility libraries, see this blog post .有关旧 D3D9X/D3DX10/D3DX11 实用程序库中内容的现代替换列表,请参阅此博客文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM