Advertisement

direct input basics

Started by February 27, 2002 01:18 PM
2 comments, last by graeme 22 years, 6 months ago
Hello, I can't seem to get direct input working. I stumble into a link error everytime I try to make a di object work. I have the correct links in vc++ at project>settings>link i have the dinput.lib listed, likewise the tools>options>include has the DXSDK at the top of the path for each of the tabs. DXSDK help said not to use #define INITGUID but to include Dxguid.lib into library, which I have done (mind you it makes no difference either way) I have tried using the code to be found here: http://www.gamedev.net/reference/articles/article1607.asp and the code in the DXSDK tutorial. I am confused... Oh yea, I have been using direct draw without any problems in this project. Edited by - graeme on February 27, 2002 2:34:43 PM
What are the linking errors?

Invader X
Invader''s Realm
Advertisement


this is the error that I get:

miner.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
Debug/manic miner.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...




Edited by - graeme on February 28, 2002 8:41:31 AM
i posted the question on the direct X forum.. the answer was to link to dinput8.lib, not dinput.lib if anyone''s interested...

This topic is closed to new replies.

Advertisement