home *** CD-ROM | disk | FTP | other *** search
- Declare Function mciSendString Lib "mmsystem" (ByVal lpstrCommand$, ByVal lpstrReturnStr As String, ByVal wReturnLen%, ByVal hCallBack%) As Long
- Declare Function mciGetErrorString Lib "mmsystem" (ByVal dwError&, ByVal lpstrReturnStr As Any, ByVal wReturnLen%) As Long
-
- Global Const WS_CHILD = &H40000000
-
- Global h%
-
- Sub CloseAVI ()
- ret = mciSendString("close Animation", retstr, 0, 0)
- End Sub
-
- Sub main ()
- PlayAVIFullScreen "x.avi"
- End Sub
-
- Sub PlayAVI (sAviFile, vHeight%, pix As Form)
-
- Dim sRet$
-
- '*** This will open the AVIVideo and create a child window on the
- '*** form where the video will display. Animation is the device_id.
-
- ErrorStr = Space(255)
- retstr = Space(255)
-
- On Error GoTo CloseAVI
-
-
-
- Cmd = Spa