主题:  获得DirectX version

疯狂的少年

职务:普通成员
等级:1
金币:0.0
发贴:106
#12002/8/20 15:06:04
通过DirectOS xtra插件便可得到DirectX version
on GetDirectXVersion
vDirectX = dosReadReg ("HKEY_LOCAL_MACHINE", "Software\Microsoft\DirectX", "Version")
if (vDirectX = "") then
if (dosGetLastError()) then
put "Can't obtain the DirectX version. DirectX may not be installed, error # "&dosGetLastError()
else
put "DirectX version information is not stored as expected."
end if
exit
end if
set the itemDelimiter to "."
put "DirectX version is " & item 2 of vDirectX & "." & item 3 of vDirectX
end



特立独行

职务:普通成员
等级:1
金币:1.0
发贴:263
#22002/8/22 10:12:21
请问这段代码使用于哪些操作系统?



疯狂的少年

职务:普通成员
等级:1
金币:0.0
发贴:106
#32002/8/27 18:32:47
windows操作系统。