首先DirectX要下载最新版,然后设置好[包含目录]和库文件就OK了
d3d9.lib
d3dx9.lib
winmm.lib
Gdi32.lib
user32.lib
否则可能出现如下问题:
Mantis.obj : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
Mantis.obj : error LNK2001: unresolved external symbol __imp__TranslateMessage@4
Mantis.obj : error LNK2001: unresolved external symbol __imp__GetMessageA@16
Mantis.obj : error LNK2001: unresolved external symbol __imp__LoadStringA@16
error LNK2019: 无法解析的外部符号
_Direct3DCreate9@4