DX SDK Problem with includes!

This is a discussion on DX SDK Problem with includes! within the Game Programming forums, part of the General Programming Boards category; I downloaded the needed files from NeHe's website for DX(DirectInput, etc.). When I do: #include <dinput.h> // All the others ...

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Unhappy DX SDK Problem with includes!

    I downloaded the needed files from NeHe's website for DX(DirectInput, etc.). When I do:

    #include <dinput.h>

    // All the others

    it won't compile and gives me this:

    49 c:\dev-c_~1\include\objbase.h
    from C:\DEV-C_~1\INCLUDE\dinput.h:17,
    37 c:\dev-c_~1\include\unknwn.h
    `com_interface' only supported with -fvtable-thunks


    What is wrong?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    Try using the DirectX package from Bloodshed's links. These an intruction README file that come with it. It works.
    http://www.bloodshed.net/dev/packages/index.html

    Dev-C++ doesn't do COM very well (I think because of the MinGW compiler). Otherwise make sure you use the -fvtable and -thunks compiler commands (maybe you forgot to add them to the compiler options).
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    1. The Direct X won't work with Dev-C++ v5.0 beta.
    2. It works fine with me with 4.01

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  2. Sin() and Cos() Problem
    By Grantyt3 in forum C++ Programming
    Replies: 4
    Last Post: 09-16-2005, 06:35 PM
  3. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 06:20 AM
  4. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 04:26 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM

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