What is with my DirectInput?

Started by
1 comment, last by Zefrieg 21 years, 5 months ago
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.
Advertisement
Nevermind, I figured out the problem. None of the articles I read said that you also had to include dxguid.lib. Funny.
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.
-YoshiXGXCX ''99

This topic is closed to new replies.

Advertisement