HINSTANCE g_hinst;
LPDIRECTINPUT8 g_lpDI;
LPDIRECTINPUTDEVICE8 g_lpDIDevice;
DirectInput8Create(g_hinst, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&g_lpDI, NULL);
g_lpDI->CreateDevice(GUID_SysKeyboard, &g_lpDIDevice, NULL);
When executing this it gives the folowing errors:
error LNK2002: unresolved external symbol_GUID_SysKeyboard
error LNK2019: unresolved external symbol_DirectInput8Create@20
error LNK2001: unresolved external symbol_IID_IDirectInput8A
Working with DirectX SDK 8.1 and Visual C++.NET...
Thnx!
Direct Input Question
I got an D3D program running, nice full screen, but now I want to add keybaord input to this program with Direct Input. As to expect.. it won''t work
Using the following code:
From those error messages, it looks like you aren''t linking with the DirectX 8 dinput.lib and dxguid.lib files. The most common way this happens is by not putting the path to the DirectX SDK at the top of the list of search paths. If the path to the VC++ includes is higher on the list, the old DX SDK files in there get used instead.
Either that, or you just aren''t linking with dinput.lib and dxguid.lib at all...
Either that, or you just aren''t linking with dinput.lib and dxguid.lib at all...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement