VB程序 怎么用mciExecute()指令自动播放音乐
我想做一个程序,当Ifs=100时用mciExecute()指令自动播放音乐应该是:Ifs=100thenx=mciExecute("playc:\**********"...
我想做一个程序,当If s = 100时用mciExecute()指令自动播放音乐
应该是:If s = 100 then
x=mciExecute("play c:\**********")
End If
但是一运行就显示实时错误类型不匹配,然后 x=mciExecute("play c:\**********")被拉黄,这是为什么? 展开
应该是:If s = 100 then
x=mciExecute("play c:\**********")
End If
但是一运行就显示实时错误类型不匹配,然后 x=mciExecute("play c:\**********")被拉黄,这是为什么? 展开
2个回答
展开全部
Public 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 sb as string
sB = String(255, " ")
mciSendString "open c:\xxx.wav alias wav", sB, Len(sB), 0
mciSendString "play wav ", sB, Len(sB), 0
dim sb as string
sB = String(255, " ")
mciSendString "open c:\xxx.wav alias wav", sB, Len(sB), 0
mciSendString "play wav ", sB, Len(sB), 0
追问
我想用mciExecute指令
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询