Jump to content
  • Advertisement

Archived

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

wazoo69

DX Version on the system?

This topic is 6016 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

Hey everyone.. Just trying to get dynamic DX versioning working properly. Is there an easy way to tell which DX version is running on the system?? ie. if the gamer''s using NT, then only use the LPDIRECTDRAW interface rather than the LPDIRECTDRAW7 one.. The only thing I''m doing at the mo, is to create the LPDIRECTDRAW interface, then query for the DX7 one...if it''s there, then we''re running a non-NT system, otherwise we''re running NT.. Is this a safe assumption?? thanks in advance..

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by wazoo69
The only thing I'm doing at the mo, is to create the LPDIRECTDRAW interface, then query for the DX7 one...if it's there, then we're running a non-NT system, otherwise we're running NT..

Is this a safe assumption??


Its definitely not safe to assume the version of DX and the version of windows on a machine are in any way linked. Just ask anyone with win2k how annoyed they get when a game claims they have DX3.0 because the have NT (and hence can`t have a higher version). Before DX8 was released for NT based systems some games just checked the OS version and refused to install if NT was present...

The DX8 SDK docs have some info on querying the DX version, as well as a sample. Basically it just involves querying for the interfaces you need. Its also on MSDN

Edited by - Krunk on December 28, 2001 6:07:08 PM

Share this post


Link to post
Share on other sites
Important rule of efficient programming: don''t reinvent the wheel

Take a look at: DXSDK\samples\Multimedia\Misc\GetDXVer\getdxver.cpp

That''s official, ready written, and tested code which will detect the DirectX version present on a machine. It also detects sub versions such as 6.1 and 8.1

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!