我对directinput8(dinput8.lib)有疑问。我的代码看起来像这样
#include <d3d9.h>
#include <d3dx9.h>
#include <d3dx9tex.h>
#include <dinput.h>
//Make sure the libraries d3d9.lib and d3dx9.lib are linked
#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")
#pragma comment (lib, "dinput8.lib")
#pragma comment (lib, "dxguid.lib")
我收到以下错误:
Error 1 error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "long __cdecl InitDInput(struct HINSTANCE__ *,struct HWND__ *)" (?InitDInput@@YAJPAUHINSTANCE__@@PAUHWND__@@@Z)
我已经添加了dinput8.lib并运行了Microsoft directx 9.0 SDK