斑竹:
   我调用了shellexecute 函数,具体如下:
ShellExecute Me.hWnd, "open", "d:\program files\acdsee32\acdsee32.exe", vbNullString, vbNullString, SW_SHOW
但是,没有看到acdsee启动,另外斑竹我想请教一下,如何将要打开的图片文件直接传给
acdsee,使它启动时,直接打开文件。谢谢!

解决方案 »

  1.   

    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
    Const SW_SHOWNORMAL = 1Private Sub Command1_Click()ShellExecute Me.hwnd, "open", "d:\Program Files\acdsee32\acdsee32.exe", vbNullString, vbNullString, SW_SHOWEnd Sub是能调出的!
    ----------------------------------
    如何将要打开的图片文件直接传给
    acdsee,使它启动时,直接打开文件。谢谢!
    ShellExecute是能打开相关联的应用程序的
    ShellExecute Me.hwnd, "open", "d:\a.txt", vbNullString, vbNullString, SW_SHOW
    能打开记事本ShellExecute Me.hwnd, "open", "d:\a.jpg", vbNullString, vbNullString, SW_SHOW保证你双击a.jpg的时候启动相关联的acdsee32