Click to See Complete Forum and Search --> : Executing a program from the application


Sophie
May 11th, 1999, 10:19 AM
can someone direct me to the function which allows me to execute another program from withinh my application.

Is it ShellExecute?
Thank you

czieler
May 11th, 1999, 10:42 AM
Should be WinExec

Andrew
May 11th, 1999, 10:49 AM
ShellExecute
ShellExecuteEx
CreateProcess

all execute applications. It all depends on what you want to do and how much control you want over the application you want to start

Hope this is of some help

A

Andrew
May 11th, 1999, 10:54 AM
No, don't use WinExec.

From the Win32 SDK documentation
"Win32-based applications should use the CreateProcess function rather than this function. The WinExec function exists in Win32 to provide compatibility with earlier versions of Windows."

A

May 12th, 1999, 05:09 AM
::System() could be more simple than CreateProcess for small needs.
It's ANSI moreover.