Solved

program terminated

Posted on 1997-11-20
6
260 Views
Last Modified: 2010-04-04
I set an external exe running with WinExec. I can periodicaly cycle through the windows (say using FindWindow) to see if it' still open. But, is there a better way to know when that program terminates?

Thanks,

Tom.
0
Comment
Question by:tomcorcoran
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1351105
Is there a reason why you just don't wait until that external program is executed?
0
 

Author Comment

by:tomcorcoran
ID: 1351106
I'm not sure I understand what you are asking. The program in question creates a file that I need to process once the external program is finished running (depending on the user this could take form a few seconds to many minutes). Does that answer your question?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1351107
Sorry, for my misleading question. I wanted to know if you wanted to wait with your program until the other program was finished. Or that you wanted to continue with your program and not wait until that exe program is finished. I see in your comment that you need to wait, because you need a file. Yes then there is a better way to do it. You can program it yourself are you can use a freeware component (better, it's easier and it's already made). If you want it. I can send it to you or I can give you the place where you can find it. Or if you really need to write it yourself i can give it too. Just give a comment.

0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:tomcorcoran
ID: 1351108
ZifNab, that sounds cool, it would probably be easier for both od us if you incluse the URL for the freeware component. Sounds great, thanks a lot. Tom.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1351109
Well,
here they come. I also use this component and I find it the best. It also has good documentation.

16 bit : http://SunSite.icm.edu.pl/delphi/ftp/d10free/execfile.zip

32bit :
http://SunSite.icm.edu.pl/delphi/ftp/d10free/execfl32.zip

Have fun,
c.u. ZifNab;
0
 

Author Comment

by:tomcorcoran
ID: 1351110
Zifnab, Sounds great, I'll download it now and take a look. Thanks, Tom.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question