Lo mas sencillo es ejecutar tu aplicacion con "Shell" (metodo nativo de VB6). Si necesitas mas opciones, podes usar el API CreateProcess.
La idea de ambas funciones es ejecutar la aplicacion y obtener su PID (process id). Si devuelve 0 es que no se ejecutó.
Luego, llamar al API WaitForSingleObject, utilizando como parametros el PID y "INFINITE" (asi espera eternamente hasta que el mismo finalize).
te dejo aca parte de mi codigo, que seguramente te va a servir:
Option Explicit
Private Const INFINITE = &HFFFF
Private Const STARTF_USESHOWWINDOW = &H1
Private Enum enSW
SW_HIDE = 0
SW_NORMAL = 1
SW_MAXIMIZE = 3
SW_MINIMIZE = 6
End Enum
Private Const NORMAL_PRIORITY_CLASS = &H20
Private Type PROCESS_INFORMATION
hProcess As Long
hThread As Long
dwProcessId As Long
dwThreadId As Long
End Type
Private Type STARTUPINFO
cb As Long
lpReserved As String
lpDesktop As String
lpTitle As String
dwX As Long
dwY As Long
dwXSize As Long
dwYSize As Long
dwXCountChars As Long
dwYCountChars As Long
dwFillAttribute As Long
dwFlags As Long
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Byte
hStdInput As Long
hStdOutput As Long
hStdError As Long
End Type
Private Type SECURITY_ATTRIBUTES
nLength As Long
lpSecurityDescriptor As Long
bInheritHandle As Long
End Type
Private Declare Function CreateProcessA Lib "kernel32" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Public Function RunProcess(ByVal sFile As String, ByVal sArguments As String, ByVal sPath As String) As Long
Dim pStartInfo As STARTUPINFO
Dim pProcInfo As PROCESS_INFORMATION
Dim pSec1 As SECURITY_ATTRIBUTES
Dim pSec2 As SECURITY_ATTRIBUTES
RunProcess = -1
pSec1.nLength = Len(pSec1)
pSec2.nLength = Len(pSec2)
With pStartInfo
.cb = Len(pStartInfo)
.dwFlags = STARTF_USESHOWWINDOW
.wShowWindow = 1
End With
If CreateProcessA(vbNullString, FixPath(sPath) & sFile & " " & sArguments, _
pSec1, pSec2, False, NORMAL_PRIORITY_CLASS, 0&, sPath, _
pStartInfo, pProcInfo) Then
RunProcess = pProcInfo.hProcess
End If
End Function
Public Sub WaitInfinite(ByVal hHandle As Long)
Call WaitForSingleObject(hHandle, INFINITE)
End Sub
Public Function ShellAndWait(ByVal sFile As String, ByVal sArguments As String, ByVal sPath As String) As Boolean
Dim lPID As Long
lPID = RunProcess(sExec, sParams, sPath)
If lPID = -1 Then
Debug.Print "Error ejecutando el programa """ & sPath & sExec & """!"
Exit Function
End If
Call WaitInfinite(lPID)
ShellAndWait = True
End Function
luego, desde tu programa llamas a ShellAndWait con los parametros del archivo ejecutable, su ruta, y los parametros (este ultimo es opcional)
saludos