Solved

program terminated

Posted on 1997-11-20
6
258 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now