Skip to main content
GameDev.net gamedev.net
🔒 Locked

Direct Input

Started by b_rollins Oct 21, 2008 at 5:10 PM 1 replies 950+ views
Original Post
b_rollins
b_rollins
I am new to Direct Input and am having some trouble. In Visual C++, I keep getting the following errors: error LNK2001: unresolved external symbol _c_dfDIKeyboard error LNK2001: unresolved external symbol _GUID_SysKeyboard error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function _InitializeDirectInput error LNK2001: unresolved external symbol _IID_IDirectInput8W Here are the include files/libraries I include in the project: #include #include #include #pragma comment (lib, "dinput8.lib") #pragma comment (lib, "dxguid.lib") I've come across references in DirectInput tutorials to a "dinput.lib" library, but the June 2008 DirectX SDK doesn't have it. Could that be the problem? (Also, I've verified I have "dinput8.dll" and "dinput.dll" in my system folder)
b_rollins
b_rollins
Never mind, found the problem. The lib directory I told the compiler to search was the x64 versions of the libs (I used that because I have XP x64). But apparently I have to use the x86 versions.

Topic Locked

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

Sign in to reply to this topic.