[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

Terminating delphi app

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
johnny_35
Asked:
johnny_35
1 Solution
 
simonetCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now