Starting a non-Delphi EXE-file from a Delphi-exefile

Starting a non-Delphi EXE-file from a Delphi-exefile

Post by koen bij » Tue, 13 Apr 2004 23:01:48


Hi,

I'd like to know how I can activate an other EXE-file from a
Delphi-exe-file.
That is, working with my selfmade program it would be nice to start Excel or
Word for example without leaving my program.

Thanks, Koen
 
 
 

Starting a non-Delphi EXE-file from a Delphi-exefile

Post by Mike Shkol » Tue, 13 Apr 2004 23:20:11

Use the ShellExecute function from ShellObj unit:

ShellExecute(0, 'open', 'winword.exe', nil, nil, SW_SHOWNORMAL)


or

 
 
 

Starting a non-Delphi EXE-file from a Delphi-exefile

Post by Maarten Wi » Wed, 14 Apr 2004 00:27:58


Question 1 (One) in the miniFAQ.
http://www.yqcomputer.com/ #Q1

Groetjes,
Maarten Wiltink