check for DX

Blitz3D Forums/Blitz3D Programming/check for DX

Rook Zimbabwe(Posted 2004) [#1]
Is ther a way to get my prgoram to check if DX8+ is installed so the machine might be able to run my game?


Bot Builder(Posted 2004) [#2]
Err, Blitz only requires Dx7. And anyway, it'll just tell the user "graphics mode unavailable" or something to that affect. I don't know of any computers running win32 that don't have dx7 but eh. I'm just saying it's very low level and you should just put it in the system requirements.


Gabriel(Posted 2004) [#3]
There's a key in the registry which holds the DirectX version.

I believe the location and key is :

"SOFTWARE\Microsoft\DirectX", "Version"

And it returns a number like 4.8.1

where 8 is the major version and 1 is the minor version.

So DX8.0 returns 4.8.0, DX8.1 returns 4.8.1, etc. And yeah, you only need above 7 for major version in order for a Blitz program to work.


ChrML(Posted 2004) [#4]
I THINK everything from Win98 and up has DX 7 or higher installed as standard (if the first edition of Win98 doesn't have DX6 or something).

Yep, just put DirectX7 and into the system requirements, then it shouldn't become a problem.


Rook Zimbabwe(Posted 2004) [#5]
The sample machine was a bargain bin eMachine... I just wanted to see if it would run on that.


Damien Sturdy(Posted 2004) [#6]
win98 fe and se has dx 6 :P