|
楼主 |
发表于 2010-10-24 10:55
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
回复 12楼 kevinchengcw 的帖子
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub cmd_Click()
ShellExecute 0, "Open", "d:\阿姐鼓.mp3", "", "", SW_SHOW
End Sub
老师您好,这段代码我把它放在VB中运行,定时1分钟播放,可是不行,能帮我看看吗? 我想可能是倒数第二行的问题. |
|