Directx usage environment configuration

  • Tags : directx 3d
  • time :

Direct development environment configuration.

1. Install the direct SDK.

Can be downloaded and installed on the Microsoft official website.

2. Add configuration. h and. lib file paths.

Using VC++ Taking 2010 as an example, open VC++ 2010, Select Tools - Options - Projects and Solutions - VC++ At this step, you may encounter the issue of "VC+ Directory Editing Denied". The solution is to select Tools - Settings - Expert Settings, then click View - Property Manager, and then click Debug | win32-> under the project menu; Microsoft Cpp Wins2. user, which opens VC++ catalogue.


Next, you need to set up the directory and library directory to include.

Add the include directory from the directx SDK to the included directory.

In the library directory, add x86 from the lib directory in directxSDK.

3. Link. lib file.

In Solution Manager, right-click on the project and select Properties - Configuration Properties - Linker - Input - Attach Dependencies.

Add the following libs in: dxerrllib d3dx9d. lib dxguid. lib d3dx10d. lib d3d9. lib comctl32. lib winmm. lib.


This completes the configuration of the directx usage environment.