Solved

Terminating delphi app

Posted on 2000-03-11
1
353 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

19 Experts available now in Live!

Get 1:1 Help Now