On 04/02/02 04:47, "Ian Johnson" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> A client has created a presentation using DirectMpeg and it plays back v.
> odd on some PC systems (either no video or corrupted with green squares all
> over the video). I think I have pinned this down to the version of DirectX
> they have installed on some machines.
> 
> Is there any way to check the DirectX version before playing the video
> (other than checking the registry)?
> 
> TIA
> 
> IanMJ
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
> [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
> for learning and helping with programming Lingo.  Thanks!]
> 
Hi Ian...

I know you said specifically "other than checking the registry":

But I use the following w/the DirectOS Xtra from DirectXtras.com and it
works great for me:

--Sample code provided by DirectXtras:

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


Best Regards,
Joe

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to