Solved

program terminated

Posted on 1997-11-20
6
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

623 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