Solved

Always send message on destroy

Posted on 2001-08-24
5
197 Views
Last Modified: 2010-04-06
Hi

I have two applications, the one should know if the other program is startet.
So my plan is that I send a message on startup and another one in the OnDestroy, but am I always sure that this message will be send if the program craches ?

Any ideas how to handle it.
0
Comment
Question by:bnz
5 Comments
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6422944
Create a global WH_SHELL hook and you will be informed of all program starts and ends.
The hook has to reside in a DLL.
0
 

Author Comment

by:bnz
ID: 6423119
Hmm it seems like a bit of a overkill, is there not an easier way.
0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6423314
You'd have to check for the other program on a timer. Biggest drawback is the wasted resources of a constantly running routine on a timer in the first place.
0
 
LVL 1

Accepted Solution

by:
sundayboys earned 100 total points
ID: 6424064
0
 
LVL 9

Expert Comment

by:ITugay
ID: 6424491
Hi bnz,

there is DDE components in Delphi. It intended to build conversation mechanizm between applications. May be it will be usefull for you.

-----
Igor
0

Featured Post

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.

Join & Write a Comment

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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