If you want to learn a new knowledge, the most troublesome thing is to install and configure a new environment, but fortunately, the installation and configuration of Directx are very simple. (The version of Directx I used was installed and automatically configured, hey!).
Firstly, I need to download the Directx SDK. I am using the Microsoft DirectX SDK (February 2010), which can be found everywhere online. After selecting the installation path, I will continue to download it and proceed to the next step. The program will automatically add header files and library files. If not, you can also manually add them.
Then there is the addition of the lib library: added library d3dx9.lib d3dxof.lib d3d9.lib winmm.lib dxguid.lib.