Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MadButch

Major problem with DX7 compile under DX8

This topic is 6420 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
If the lib was corrupt, wouldn''t that mean that my dx8 input also wouldn''t work?

I''ll try to reinstall direct x8...

Share this post


Link to post
Share on other sites
i had problem with the DirectInputCreateEx().

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

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
Dx8 includes Dx7 headers and libs. Check out the Dx8 include and lib directories, you will be surprised

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!