Major problem with DX7 compile under DX8

Started by
5 comments, last by MadButch 23 years, 3 months ago
I have DirectX8 installed. But now I want to make a build of my program which should work under DirectX 7. The only DirectX 8 code I was using is DInput. I put my DX7 code back into place, but it wont work! It just wont accept any input. Drawing and Sound work fine. I tried to compile an older version of my game, which compiles fine after I add the following code to the start of my input class: #ifndef DIRECTINPUT_VERSION // Overwrite DX8 #define DIRECTINPUT_VERSION 0x0700 #endif But this version now also stops accepting any input. Do I have to uninstall DX8 to be able to make a DX7 build? That sounds as if MS screwed up! Or am I the one who is screwing something up here? Many thanks in advance to anybody who can shed some light on this...
Check my games out at:http://www.GamePlayHeaven.com
Advertisement
Hmm, directinput 7 or earlier works fine for me. However, my ddraw lib got messed up in the download and I had to take an older version. This could have happened to your DirectInput library, but I don''t rightly know.


Just because you''re outnumbered doesn''t mean you''re wrong.


sharewaregames.20m.com

If the lib was corrupt, wouldn''t that mean that my dx8 input also wouldn''t work?

I''ll try to reinstall direct x8...
Check my games out at:http://www.GamePlayHeaven.com
i had problem with the DirectInputCreateEx().

apperently, the DirectInputCreateEx was renamed to DirectInputCreate8 .. and dinput.lib was also renamed to dinput8.lib ..

I know that that''s how my DirectX8 version worked.

But here is the solution:
If you want to build a DX7 executable, you need the libraries and includes from the DX7 SDK.

So now I have DX8SDK installed, and a DX7SDK dir with only the lib and include dirs. When I build the DX7 executable, I make sure that the DX7 paths are at the top in my VS options. Works like a charm...
Check my games out at:http://www.GamePlayHeaven.com
weird thing...
I myself have the dx8 sdk installed and can compile dx7 source without problems!
Dx8 includes Dx7 headers and libs. Check out the Dx8 include and lib directories, you will be surprised

This topic is closed to new replies.

Advertisement