Help compiling a simple tutorial(DirectX)

This is a discussion on Help compiling a simple tutorial(DirectX) within the Windows Programming forums, part of the Platform Specific Boards category; I am having troubles compiling a simple DirectX tutorial with my free borland compiler(you know, the 5.5 one). Because I ...

  1. #1
    Unregistered
    Guest

    Question Help compiling a simple tutorial(DirectX)

    I am having troubles compiling a simple DirectX tutorial with my free borland compiler(you know, the 5.5 one). Because I really have no knowledge of DirectX at all right now, I am having a lot of trouble figuring out what the problem is. It doesn't seem like it can be in the tutorial code, I mean, usually tutorial examples are pretty correct..

    The tutorial I am using is here: http://sunlightd.virtualave.net/Wind...ctX/Input.html

    Note that I can compile everything before this point, no problem. I am using the DirectX 8.1 SDK, and I have taken the steps necessary to aquire Borland versions of the .lib files.

    When I try to compile that tutorial, I get an error in the input.cpp code(all the rest seems to be fine). The error is on line 120, "Undefined symbol 'i' in function __stdcall DIEnumDevicesBySemanticsCallback(const DIDEVICEINSTANCEA *,IDirectInputDevice8A *,unsigned long,unsigned lonng,void *)"

    I'd really appreciate some help on this. I'm thinking the problem might somehow be with DirectInput and the fact that I'm using Borland rather than Visual(which Microsoft is obviously biased towards in the latest DirectX SDK...).

  2. #2
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    hmmm...when i was playing with dx last time, i came upon similar problem...error with dinput libraries or so. Unfortunately, i do not remember how did i solve it, if i did at all . I'll take a look.
    I'd recommend Borland's newsgroups...

  3. #3
    Unregistered
    Guest

    Post Me again

    Yeah... I actually played around with it and got it down to an unresolved external-type error, which I know is related to a .lib. I had this problem when I first did something with DirectDraw. I followed some instructions somewhere and got Borland versions of the libs. This solved my DirectDraw problem. However, I am now having the same problem with DirectInput, and it doesn't seem like I have the right libs still...

    The error I get now is Unresolved External '_IDD_IDirectInput8A' referenced from... etc etc.

    Does anybody have any suggestions on how to repair this? I am including dinput8.lib and ddraw.lib

  4. #4
    Registered User Esss's Avatar
    Join Date
    Aug 2001
    Posts
    133
    The IIDs For DirectX are kept in dxguid.lib, so I would recommend you include that, too.
    Ess
    Like a rat in a maze who says,
    "Watch me choose my own direction"
    Are you under the illusion
    The path is winding your way?
    - Rush

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  3. compiling a simple Fmod program
    By lambs4 in forum Game Programming
    Replies: 2
    Last Post: 04-27-2004, 01:11 PM
  4. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM

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