Linking problem with dinput8.lib

Started by
2 comments, last by okonomiyaki 21 years, 6 months ago
I''m writing a new application with DirectX from scratch and now that I''m trying to implement the input devices it''s giving me the typical "Unresolved external" errors. I linked it to dinput8.lib and included dinput.h. What else should I do? I have another program that works fine with what I think is the exact same setup. An example error: "dinput8.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis" Any advice? Thanks VS .NET with DX 8.1
Advertisement
This might help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intinput/hh/intinput/di_4zjd.asp?frame=true

-------
"Programming is like sex make one mistake, and you have to support it forever."
Homepage: http://students.washington.edu/andrey
-------Homepage: http://www.pclx.com
Are you getting more than one complaint about unresolved external GUIDs? If you are, you probably aren''t linking to dxguid.lib, or haven''t got "#define INITGUID" before you include dinput.h.
Doh, I forgot the #define INITGUID. It didn''t work after I put that but after a couple compiles it ended up working.. ? Ah well, thanks!! It works great now.

This topic is closed to new replies.

Advertisement