Results 1 to 2 of 2

Thread: Win api

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    24

    Post

    How can I use the Windows API to play an avi file and have it loop constantly?????

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    Test it:

    ------------------
    Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

    Sub Command1_Click()
    CmdStr$ = "play d:\winnt\clock.avi repeat"
    ReturnVal& = mciSendString(CmdStr$, 0&, 0, 0&)
    End Sub

    ------------------
    smalig
    smalig@hotmail.com
    smalig.tripod.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width