> Do you have a small example on how to do it? The
> function of my
program would be only to call the extarnal program
(notepad,iexplore).
This works for me (run from a command line window in WinXP):
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Opening Notepad...");
system("notepad.exe"); /* opens new window */
puts("Back from Notepad");
return 0;
}
This program appears to hang until the Notepad window is
closed, because it's waiting for the system() call to
return. If this is not what you want, you'll need to start a
child process for Notepad. This is considerably more
complicated.
David