I am creating a game that requires DirectX 7, how can I get the DirectX version(if lower than 7, DX setup will start)?
Printable View
I am creating a game that requires DirectX 7, how can I get the DirectX version(if lower than 7, DX setup will start)?
That should do it.Code:
Function IsDX7 as Boolean
On Error Goto NoDX7
Dim DirectX As New DirectX7
IsDX7=TRUE
Exit Function
NoDX7:
IsDX7=FALSE
End Function