Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how to detect DirectX version ?

Author
Message
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 11th Sep 2005 16:09
Well... I think I'm not the first to ask this question, but I haven't find any thread ;
Is it possible to detect in DBP which version of DirectX is running on the system ?
Thank's !

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th Sep 2005 16:14
I think that DBPro programs will only run on 9.0c, so it's pretty easy!

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 11th Sep 2005 16:30
That's not exactly my question ... in this way : how to detect the 9.0c version is installed ?

My actual solution is to scan the logfile in \Windows\Directx.log



And I'd like to use something more... efficient

Quote: "I think that DBPro programs will only run on 9.0c, so it's pretty easy!"


Not 100% right anyway

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th Sep 2005 16:36
Quote: "Is it possible to detect in DBP which version of DirectX is running on the system
That's not exactly my question ... in this way : how to detect the 9.0c version is installed "


My logic was - given that DBPro programs will only run with 9.0c installed, detecting inside DBPro apps will only return 9.0c?

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 11th Sep 2005 16:45
Yes, you're right, but all I want to do is to display a warning message to users who don't own the correct version of DirectX.

Just because I think that 50% of users don't even know exactly what version of DirectX they use... Last night I thought I was using 9.Oc DirectX until I try a game trial and realize I was running 9.0b

Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 11th Sep 2005 16:45 Edited at: 11th Sep 2005 16:47
or in other words, if you have DX8.1 then your Darkbasic app will not run, hence it can`t find out you do have 8.1, since it only will run if you have 9.0c, you need to make an application in some other compiled language that will check for directx and install 9.0c if it isn`t there, then go on to run or install your Darkbasic application for you, most installer software should be able to check for this.



the average IQ is 100...but the people that took the test where trying to look smart. most people don`t go over 50.
Area 51?, I`m more intrested in what they have in areas 1 to 50
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th Sep 2005 17:14
Quote: "Yes, you're right, but all I want to do is to display a warning message to users who don't own the correct version of DirectX."


I think the DBPro app bails out with an error like "can't find d3d9.dll" befor eit even runs, hence the only way your checking code will run is it if has 9.0c

As Me! says its best to use another language to find the version, which would then execute the dbpro app if 9.0c is there.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 11th Sep 2005 18:41
Ok, that's clear, thank's to both of you! I want to keep a single standalone exe file (so no C++ launcher or installer) but at least I'll keep my \Windows\Directx.log scan check for the 9.0B situation...

Login to post a reply

Server time is: 2025-06-03 17:27:26
Your offset time is: 2025-06-03 17:27:26