Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent Artifacting

Status
Not open for further replies.

rhnewfie

Programmer
Jun 14, 2001
267
0
0
CA
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 &quot;print&quot; 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
 
Have u then after u create the new aplication by createprocess trece his handle or use waitforsingleobject function? ________
George, M
email : shaddow11_ro@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top