I am using the following API calls to spawn an application from my main app. I am using the following to accomplish this:
Public Declare Function CreateProcess& Lib "kernel32" _
Alias "CreateProcessA" (ByVal lpApplicationName As String, _
ByVal lpCommandLine As String, _
ByVal lpProcessAttributes As Long, _
ByVal lpThreadAttributes As Long, _
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _
lpEnvironment As Any, ByVal lpCurrentDirectory As String, _
lpStartupInfo As STARTUPINFO, _
lpProcessInformation As PROCESS_INFORMATION)
Public Declare Function WaitForSingleObject& Lib "kernel32" _
(ByVal hHandle As Long, ByVal dwMilliseconds As Long)
Public Declare Function CloseHandle& Lib "kernel32" _
(ByVal hObject As Long)
However, if the user moves the child app around the it leaves a "print" of itself behind >:-<. Is there anyway to prevent this??
Thanks in Advance
RHNewfie There are 3 Types of People in the World
Those Born to Think Logically
Those that can Learn to Think Logically
Those that Shouldn't Try
Public Declare Function CreateProcess& Lib "kernel32" _
Alias "CreateProcessA" (ByVal lpApplicationName As String, _
ByVal lpCommandLine As String, _
ByVal lpProcessAttributes As Long, _
ByVal lpThreadAttributes As Long, _
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _
lpEnvironment As Any, ByVal lpCurrentDirectory As String, _
lpStartupInfo As STARTUPINFO, _
lpProcessInformation As PROCESS_INFORMATION)
Public Declare Function WaitForSingleObject& Lib "kernel32" _
(ByVal hHandle As Long, ByVal dwMilliseconds As Long)
Public Declare Function CloseHandle& Lib "kernel32" _
(ByVal hObject As Long)
However, if the user moves the child app around the it leaves a "print" of itself behind >:-<. Is there anyway to prevent this??
Thanks in Advance
RHNewfie There are 3 Types of People in the World
Those Born to Think Logically
Those that can Learn to Think Logically
Those that Shouldn't Try