Check DirectX Version

BlitzPlus Forums/BlitzPlus Programming/Check DirectX Version

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I don't know if there's an api call to check it... But you could run dxdiag with the /t <file> parameter.

IE:
dxdiag /t output.txt

Then look for

------------------
DirectX Components
------------------
   ddraw.dll: 5.03.0000.0900 English Final Retail 12/12/2002 01:14:32 257536 byt
es
 ddrawex.dll: 5.00.2134.0001 English Final Retail 5/8/2001 07:00:00 24336 bytes
   dxapi.sys: 5.00.2180.0001 English Final Retail 5/8/2001 07:00:00 10064 bytes
    d3d8.dll: 5.03.0000.0900 English Final Retail 12/12/2002 01:14:32 1156608 by
tes
 d3d8thk.dll: 5.03.0000.0900 English Final Retail 12/12/2002 01:14:32 7168 bytes
 d3dref8.dll: 5.01.2258.0400 English Final Retail 11/7/2000 16:16:46 181760 byte
s
    d3d9.dll: 5.03.0001.0902 English Final Retail 5/30/2003 10:00:02 1613312 byt
es
   d3dim.dll: 5.00.2180.0001 English Final Retail 12/12/2002 01:14:32 446224 byt
es
d3dim700.dll: 5.03.0001.0902 English Final Retail 5/30/2003 10:00:02 797184 byte
s
  d3dref.dll: 5.01.2258.0400 English Final Retail 11/7/2000 16:16:46 90112 bytes
 d3dramp.dll: 5.00.2180.0001 English Final Retail 12/12/2002 01:14:32 591120 byt
es
   d3drm.dll: 5.00.2134.0001 English Final Retail 12/12/2002 01:14:32 364816 byt
es
  d3dxof.dll: 5.00.2135.0001 English Final Retail 12/12/2002 01:14:32 49424 byte


in the text file. That's one way........