DirectInput warning

This is a discussion on DirectInput warning within the Game Programming forums, part of the General Programming Boards category; It compiles fine, but for every file that it compiles (MSVC 6 WinXP), I get the following warning Code: C:\Program ...

  1. #1
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    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?
    Away.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    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.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 12:03 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21