Jump to content
  • Advertisement
Sign in to follow this  
b_rollins

Direct Input

This topic is 3559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 <windows.h> #include <windowsx.h> #include <dinput.h> #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)

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!