说三道四技术文摘-感悟人生的经典句子
说三道四 > 文档快照

播放 AVI -VB资料

HTML文档下载 WORD文档下载 PDF文档下载
播放 AVI -VB资料
声明:
Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, ByVal _
lpstrReturnString As String, ByVal uReturnLength _
As Long, ByVal hwndCallback As Long) As Long
代码:
Dim returnstring As String
FileName As String
returnstring = Space(127)
FileName = "C:\A1.avi"
erg = mciSendString("open " & Chr$(34) & FileName & _
Chr$(34) & " type avivideo alias video", returnstring, _
127, 0)
erg = mciSendString("set video time format ms", _
returnstring, 127, 0)
erg = mciSendString("play video from 0", returnstring, _
127, 0)
'记着关闭!
erg = mciSendString("close video", returnstring, 127, 0)

备案号:鲁ICP备13029499号-2 说三道四 www.s3d4.cn 说三道四技术文摘