DirectX

Blitz3D Forums/Blitz3D Beginners Area/DirectX

Spacemonkey(Posted 2003) [#1]
Hi,

Is there a way to detect the DirectX version in Blitz?


darklordz(Posted 2003) [#2]
Yes there is using a dll...and a userlib...i think jfk made some demo's waaay back....


Spacemonkey(Posted 2003) [#3]
Ok, sins I am new here could you help me find it please ?


GfK(Posted 2003) [#4]
Yes there is using a dll...and a userlib...i think jfk made some demo's waaay back....
I don't see how, since Blitz3D apps crash on startup if DirectX7 or higher isn't present...

be interesting to see tho...

If you're talking Blitz+, since it runs on any version of DirectX it doesn't really matter which version is being used, does it?


darklordz(Posted 2003) [#5]
He wants to get the DX version installed on the system with B3D...He could use that for any number of purposes. Writing Userlib now will publish later....

If you want to try i for yourself use this....
Minor%,Majour% are pointers so make banks and pass them along when callin the function then use peek to get the result back...

.lib "dsetup.dll"

DirectXSetupGetVersion%(Minor%,Majour%):"DirectXSetupGetVersion"



Spacemonkey(Posted 2003) [#6]
Ok, iŽll try that...