|
-
Nov 25th, 1999, 12:49 PM
#1
Thread Starter
Junior Member
I have noticed that when I use the Windows API, I cannot play some avi files. the following is the code I use, and it only works for some avi files. Why????
In general, declarations area:
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
Public FileName
--------------------------------------
Open App.Path & "\" & App.EXEName & ".stp" for Input As #1
Input #1, FileName
close #1
Last$ = ScreenSaver.hWnd & " Style " & &H40000000
ToDo$ = "open " & FileName & " Type avivideo alias video parent " & Last$
i = mciSendString(ToDo$, 0&, 0, 0)
i = mciSendString("play video repeat", 0&, 0, 0)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|