DX Version on the system?

Started by
1 comment, last by wazoo69 22 years, 3 months ago
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..
Learn about game programming!Games Programming in C++: Start to Finish
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
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

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

This topic is closed to new replies.

Advertisement