Skip to main content
gamedev.net
🔒 Locked

DirectInput 8

Started by thorpe 1 reply 950+ views
Original Post
thorpe
thorpe
I get a linker error when trying to compile my DirectInput 8 code. LINK : error LNK2020: unresolved token (0A0000B4) IID_IDirectInput8A LINK : error LNK2020: unresolved token (0A0000B6) GUID_SysKeyboard LINK : error LNK2020: unresolved token (0A0000BA) GUID_SysMouse I've found some old posts on the subjects which tells me to include dinput8.h. However I do not have such a file (not in any SDK I have, not even the latest december 2004 release). This is how I include the file: #define DIRECTINPUT_VERSION 0x0800 #include <dinput.h> I link with dinput8.lib. What could be wrong?
Johan Torp - http://www.destruction.nu
Mercury
Mercury
You also need to link to dxguid.lib

- Jordan
thorpe
thorpe
Thanks a billion :)
Johan Torp - http://www.destruction.nu

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.