Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open app from within delphi 2

Status
Not open for further replies.

Jonah86

Programmer
Dec 11, 2003
152
US
Is there any real way to open another Delphi App from within a delphi app? I have a bunch of apps written and I'd rather have one central app for the user to execute and then chose what they need to do from within that.
 
This is quite easy to do.

Add ShellApi to your uses list.

Call your Delphi App (or any other executable file or file that has an application associated with it) by using
Code:
  ShellExecute(0, 'Open', PChar(App), PChar(''), PChar(''), SW_Hide);
where App is the name of the file or the application that you want to execute.

Andrew
Hampshire, UK
 
Once again, you come through for me. Thanks again!
 
Andrew,

It might be worth adding your answer to the FAQ section, as this is a question which is always being asked!

Clive

Clive [infinity]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top