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...).