I\'m using the system command in C++ to call some external program, and whenever I use it, a console window opens and closes after the command finishes.
exec() looks quite platform independant as it is POSIX. On windows, it's _exec() while it's exec() on unix: See http://msdn.microsoft.com/en-us/library/431x4c1w(VS.71).aspx