Environment configuration: .
Project property settings - including directory and library directory, including include files and Lib files on the DirectX installation path.
Include directory
D: Program Files (x86) Microsoft DirectX SDK (June 2010) Include
Library directory
D: Program Files (x86) Microsoft DirectX SDK (June 2010) Lib x86.
Error LNK2019: Unresolved external symbol (this issue is due to unsuccessful project library file linking)
The project is using DirectX 9 version and the latest 11.0 version installed on the system. The project's associated lib file has failed.
Violent resolution: Manually add the following code.
#Pragma comment (lib," d3d9. lib")
# pragma comment (lib," d3dx9. lib")
#Include< D3d9. h>
Alternatively, add the following configuration: .
D3d9. lib; D3dx9. lib; Winmm.lib; (Project Properties Linker Input) .