Solved

program terminated

Posted on 1997-11-20
6
255 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
Comment Utility
Is there a reason why you just don't wait until that external program is executed?
0
 

Author Comment

by:tomcorcoran
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:tomcorcoran
Comment Utility
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
Comment Utility
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
Comment Utility
Zifnab, Sounds great, I'll download it now and take a look. Thanks, Tom.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

14 Experts available now in Live!

Get 1:1 Help Now