ShellExecute(0, "open", "notepad.exe", "", "", SW_SHOWNORMAL);
look up CreateProcess in the ISAPI help for better information. I am not
sure if you can run with params in shell execute
From: ziad khawam <za...@aub.edu.lb>
To: <cpi...@tonghua.com.cn>
Sent: Tuesday, June 08, 1999 4:00 PM
Subject: How to run an external app.
Hi Lilian,
in fact there is two way to run an external app. from C++ builder
1- If you want to stop your C++ builder program before lunching Note
Pad, use
execlp("C:\\WINDOWS\\Notepad.EXE", C:\\WINDOWS\\Notepad.EXE",NULL);
2- If you want to keep your C++ Builder running when lunching Note pad,
use
spawnlp(P_DETACH,"C:\\WINDOWS\\Notepad.EXE",
C:\\WINDOWS\\Notepad.EXE",NULL);
For more information check the help index for exec or spawn.
PLS. post the reply.
regards.
Ziad Khawam.