Advertisement

program running program

Started by July 04, 2002 04:56 PM
3 comments, last by aperson 22 years, 7 months ago
How would one go about making a program that starts another. For example i make a program that, when i click somethingm, starts mspaint or something.
CreateProcess


codeka.com - Just click it.
Advertisement
You''re other option is ShellExecute, which can be used to run programs, open URLs and display files.
or if your really lazy:

WinExec("mspaint.exe",SW_SHOWDEFAULT);
ShellExecute is a good one, but WinExec is deprecated and should probably be avoided where possible...


codeka.com - Just click it.

This topic is closed to new replies.

Advertisement