Open an executable under Delphi

Asked By 10 points N/A Posted on -
qa-featured

Hello Techyv Guys, I need to open or run an executable like that of Freecell or Setup. Please guide me about, how to open an executable under Delphi source. Thanks

SHARE
Answered By 0 points N/A #198755

Open an executable under Delphi

qa-featured

Hello Zacharytyshawn,

Good Day!

To launch an application or execute a file in Win32 environment we will use the ShellExecute Windows API function. Check out the help on ShellExecute for full description of parameters and error codes returned. 

As you will see we can open any type of document from our program without knowing which program is associated with it (this link is defined in the Windows Registry). 

You may download the code that attached below.

 

Regards,

Quinn Poon

Related Questions