Posted: 10th Feb 2003 9:12
I hope you'll find that usefull

+ Code Snippet
` Get installed DirectX Version :D
` (c) by Hubdule @ Color Arts 2003
` http://www.colorarts.de
Dim split$(3)
DirectXVersion$=GET REGISTRY$("SOFTWARE\Microsoft\DirectX\", "Version")
Print "You use DirectX:"+DirectXVersion$

SplitString(DirectXVersion$,".")
Print "Version Overview"
Print "Master: "+str$(val(split$(0)))
Print "Major : "+str$(val(split$(1)))
Print "Minor : "+str$(val(split$(2)))
Print "Build : "+str$(val(split$(3)))

Suspend for key
end

function SplitString(msg$,delimiter$)
   delimiter$=left$(delimiter$,1)
   msg_counter=0
   for i=0 to 3
       split$(i)=""
   next i
   for i=1 to len(msg$)
       tmp$=mid$(msg$,i)
       if tmp$=delimiter$
          inc msg_counter
       endif
       if tmp$=delimiter$ then goto nextline
          split$(msg_counter)=split$(msg_counter)+tmp$
nextline:
   next i
endfunction msg_counter
Posted: 10th Feb 2003 9:35
^_^ Nice... =P
Posted: 10th Feb 2003 23:00
interesting .
Posted: 11th Feb 2003 5:33
nice hubdule,

Im adding your snippet the DBP-DIAG an open source Diagnostic script that spits out a file relating to your systems abilities with credits of course.




got an idea how to find the windows version?

like win98se win2k etc.
Posted: 11th Feb 2003 7:35
O_O indi I bet it would be in the registry... and db can broswe it can't it?
Posted: 11th Feb 2003 10:55
http://www.realgametools.net/forums/index.php?board=14;action=display;threadid=12871


i posted the start of DBdiag at RGT


yes it would be a registry key i would imagine but how would u call it and is it the same and in the same place on all of the windows OSes.
Posted: 26th Feb 2003 12:48
indi, i've released a DLL - so has Toady for getting this information

i figured this was grabbing it from a part of DirectX, i hope the Registry holds the correct version
Posted: 26th Feb 2003 15:07
I worked this out ages ago with contextual help from MRtatoad.

its part of DBP diag if u missed grabbing it, see the link above.
Posted: 26th Feb 2003 15:30
If you want to find out what OS is used, got an plug-in for that too...
Posted: 27th Feb 2003 2:53
hehe there he his, him him him <----
Posted: 27th Feb 2003 6:00
Why is it necessarily relevant to be able to determine the DirectX version installed. If you ran you program and the required DX wasn't installed (7 or 8.1) the game would terminate and there would be no relevance to knowing the DX installed. If the user has the proper DX installed, why would they need to worry? Don't get me wrong. This is a great piece of code and I am still dumbfounded and can't quite figure out what it is doing(I wouldn't be able to program this), but why would this really be relevant?
Posted: 27th Feb 2003 6:40
imagine a feature only existed in dx9 but had to be created a different way as compared to dx7

it only helps to identify the platform your game is running on and to identify what u can access.
Posted: 27th Feb 2003 7:18
Ok, makes perfect sense; has there been anything like that ever?
Posted: 27th Feb 2003 7:34
well i have a few DirectX 8.1 & 9 functions for Professional ... but it detects which DirectX is installed (differently than to above) and uses the apropriote libraries

so really have 2 sets of functions written for the same tast but written to take full advantage of each DirectX

though really all indi is doing is making a System Checker, or perhaps a startup editor based on features
Posted: 27th Feb 2003 8:37
yes thats correct its help all the programs being made to identify what platform and features is on the system the program runs on so it knows in a fuzzy logic what to use.
Posted: 27th Feb 2003 11:12
hehe there he his, him him him <----

Are you refering to moi ?
Posted: 27th Feb 2003 11:53
indeed
Posted: 27th Feb 2003 13:16
Ah...