Starting a new program

This is a discussion on Starting a new program within the C++ Programming forums, part of the General Programming Boards category; In a console based application, how do you run a new program without closing the original. For example I open ...

Correct me if I'm wrong, but I'm pretty sure that's what the system() call does... if you want a console application to open in a new window, you'll have to do something like pass cmd.exe the name of the console application as an argument.

>I also read elsewere on this forum that system(); isn't a good command to use.
system() is a perfectly good function to use. It's bad when it's misused (for example, using it to call things like "pause" when you can simply use getchar() ).

>To my knowledge, again which may be wrong, system() echos as if you went to start->run->cmd and you typed the text in.
It's been awhile since I used Windows, but I'm pretty sure that typing a Win32 program at the prompt will open it the way it's supposed to execute, but then again, I could be wrong. I know this works on Mac and Linux.

The program is still not opening and I get the following error
196
C:\Dev-Cpp\Me\dos.cpp
[Warning] passing NULL used for non-pointer converting 6 of `HINSTANCE__* ShellExecuteA(HWND__*, const CHAR*, const CHAR*, const CHAR*, const CHAR*, INT)'