PDA

Click to See Complete Forum and Search --> : Win api


JohnDoe13579
Nov 13th, 1999, 05:06 AM
How can I use the Windows API to play an avi file and have it loop constantly?????

smalig
Nov 13th, 1999, 07:20 PM
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 (http://smalig.tripod.com)