Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

program terminated

Posted on 1997-11-20
6
Medium Priority
?
263 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
Technology Partners: 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

705 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