In article <6F**********************************@microsoft.co m>,
=?Utf-8?B?RXJpY1A=?= <Er***@discussions.microsoft.comwrote:
>When using the function system() in a win32 c++ application, i notice a
seperate shell window opens and closes quickly when the app is run and this
system() call is encountered. Is there a way to suppress or prevent this
seperate shell window from opening or being seen ?
Look up _spawnlp (and cousins) in MSDN, such as
http://msdn2.microsoft.com/en-gb/lib...fd(VS.80).aspx .
Basically, do something like
_spawnlp(_P_NOWAIT, "someprogram", "arg1", "arg2", ... , NULL); // NULL required as last argument.
Nathan Mates
--
<*Nathan Mates - personal webpage
http://www.visi.com/~nathan/
# Programmer at Pandemic Studios --
http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein