How a 32-Bit App Can Determine When a Shelled Process Ends, Article ID: Q129796 
Author Message
 How a 32-Bit App Can Determine When a Shelled Process Ends, Article ID: Q129796

Hi,

this example in the ms knowledgebase works fine but with
one disadvantage: no code is executed while waiting for
the shelled process to end until it is closed.
I want my program to keep working and on the event that
the shelled program is close to react to that.
it used to be so simple in VB 3.0, why is it so
complicated in VB 4.0??

Help me plz.

Osama



Wed, 05 Jan 2000 03:00:00 GMT  
 How a 32-Bit App Can Determine When a Shelled Process Ends, Article ID: Q129796

Quote:

> this example in the ms knowledgebase works fine but with
> one disadvantage: no code is executed while waiting for
> the shelled process to end until it is closed.
> I want my program to keep working and on the event that
> the shelled program is close to react to that.
> it used to be so simple in VB 3.0, why is it so
> complicated in VB 4.0??

Instead of using an infinite wait, use a finite amount of time. When the
time expires, check whether it expired because of timing or because the
program finished. DoEvents as necessary. Loop as necessary.

In VB5: Start a separate thread.

N Varacalli
--
The views expressed herein do not represent the views of my employer.

The Address in the header is mangled, delete appropriately.

To reach me via e-mail, try
NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com



Fri, 07 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How a 32-Bit APP can Determine When a Shelled Process Ends - Q129796

2. How a 32-Bit App Can Determine When a Shelled Process Ends

3. Help: How a 32-Bit app can determine when a shelled process ends

4. How to Determine When a Shelled 32-bit Process Has Terminated

5. HELP: How-to determine if 32-bit shelled app is finished

6. Shell and Wait 16 bit apps from 32 bit VB 4.0

7. Ending a Process VB4a 32 Bit

8. Waiting for a shell process to finish in 32 bit environment

9. How to detect (by EXE name) if a non-shelled process is running (32-bit)

10. How to detect (by EXE name) if a non-shelled process is running (32-bit)

11. Calling 32-bit DLL function from 32-bit VB4 app

12. Launching 16-Bit apps from 32-Bit app?

 

 
Powered by phpBB® Forum Software