Solved

Terminating delphi app

Posted on 2000-03-11
1
357 Views
Last Modified: 2010-04-04
Hi!

Does anybody know how can i terminate an delphi application without the application.terminate procedure (and without the use of the forms unit)?

Thanks
0
Comment
Question by:johnny_35
[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
1 Comment
 
LVL 15

Accepted Solution

by:
simonet earned 20 total points
ID: 2607981
You can send a WM_CLOSE message to the main window of the Delphi application. All this requires is the Windows unit in the uses clause.

Example:

SendMessage(Application.mainform.handle, WM_CLOSE, 0, 0);

Yours,

Alex
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 92
how to center only a line in richedit? 4 69
PHP preg_replace code convert to Delphi 14 80
Firemonkey Queue list 1 28
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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