谢谢

解决方案 »

  1.   

    Shell "c:\Program Files\Internet Explorer\IEXPLORE.exe c:\sndcy.swf" ,1
      

  2.   

    用API函数ShellExecute:
    '声明
    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
      

  3.   

    Call ShellExecute(Me.hwnd, "open", "d:\vvbb\aaa.swf" , "", "", 1)
      

  4.   

    TO:Call ShellExecute(Me.hwnd, "open", "d:\vvbb\aaa.swf" , "", "", 1)
    报错误:子程序或函数未定义请问是什么原因???
      

  5.   

    建议用ShellExecute函数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 LongPrivate Sub command1_click()
    Call ShellExecute(Me.hwnd, "open", "d:\vvbb\aaa.swf" , "", "", 1)
    end sub