I. Tool download
IDE: Visual Studio 2008
SDK: DirectX SDK, which can be downloaded from Microsoft's website for free. The SDK also contains examples, tools, and documents. Built-in tools are very useful. We often use the DDS texture tool.
2. Set Visual Studio 2008
Menu Bar-> Tools-> options...
Select projects and solutions-> VC ++ directories on the left
Show directiories for on the right: Select include files and add the include directory of DirectX SDK to the following window:
Show directiories for on the right: Select library files and add the lib directory of DirectX SDK to the following window.
Now, all DirectX projects will be correctly compiled, similar to the following error "cannot open include file: 'd3d10. H': no such file or directory" will no longer appear. These settings are automatically applied to Win32 configurations and will apply to all new projects in the future. You do not need to set them again.