也可以这样 Public 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 ShellExecute hwnd, "open", "路径文件名", vbNullString, vbNullString, 1
Public 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
ShellExecute hwnd, "open", "路径文件名", vbNullString, vbNullString, 1
大家误会我的意思了~!VB的IDE环境中可以添加两个工程的嘛,然后我就添加了两个工程,那么它们怎么相互调用呢?我要的是两个工程只生成一个exe哦~!