VB View DirectX Version

xiaoxiao2021-04-01  228

'Reference Windows Scripting Host ObjectDim regwsh, Value, DValue, temp As StringSet regwsh = New IWshShell_ClassDValue = regwsh.RegRead ( "HKLM / SOFTWARE / MICROSOFT / DirectX / InstalledVersion") Value = regwsh.RegRead ( "HKLM / SOFTWARE / MICROSOFT / DirectX / Version ") for i = lbound (DVALUE) To Ubound (Dvalue) Temp = Temp & Dvalue (i) Next Imsgbox" Your machine DirectX version is: "& VBCRLF &" DirectX "& MID (Temp, 4, 1) & "." & _Right (Temp, 1) & "(" & Value & ")" SET regWSH = Nothing

转载请注明原文地址:https://www.9cbs.com/read-131199.html

New Post(0)