-
DirectInput warning
It compiles fine, but for every file that it compiles (MSVC 6 WinXP), I get the following warning
Code:
C:\Program Files\directx 9.0a SDK\Include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
Which is just a bit annoying, because it makes the build window scroll a lot - extra annoying when there are "real" errors. I tried both of the following lines (one at a time)
Code:
#define DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0800
But both gave me macro redefinition warnings. Is there something I can #define (or something else I can do) to get rid of the "warning" that DirectInput is giving me?
-
Open up your DX9 dinput.h header and see what it is looking for. Usually doing something like
Code:
#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x0800
will do the trick. Make sure you do it each time you include the header.