Archived

This topic is now archived and is closed to further replies.

Zefrieg

What is with my DirectInput?

Recommended Posts

c:\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 DXInput.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A I''ve been getting both of these constantly. I have included dinput8.lib in my project, and also dinput.h. I have followed exactly what a couple articles have said to do. Still, I get linkage errors. Any idea? All other DirectX interfaces seem to work fine.

Share this post


Link to post
Share on other sites
Nevermind, I figured out the problem. None of the articles I read said that you also had to include dxguid.lib. Funny.

Share this post


Link to post
Share on other sites
If you want to get rid of the first warning (the one about DIRECTINPUT_VERSION undefined) then you can simply do this:

#define DIRECTINPUT_VERSION 0x0800

before (I''ll repeat that, BEFORE) you include dinput.h.

Share this post


Link to post
Share on other sites