Re: Calling "system" without console window appearing by lallous
lallous
Tue Jun 22 05:10:15 CDT 2004
Hello
Try to CreateProcess() or WinExec() directly instead of calling system()
which will use %COMSPEC% env. variable.
If you still want to use system, call something similar to it using
WinExec(cmd, SW_HIDE) where 'cmd' is value of %COMSPEC% with a "/c
params......" parameter
--
Elias
"stefkeB" <stefkeB@hotmail.com> wrote in message
news:%23$%23zayDWEHA.3368@TK2MSFTNGP10.phx.gbl...
> When I call an external program from another program (either MFC
standalone
> or as a plugin inside another application), then a call to system always
> launches a console window. Can I prevent that?
>
> --- stefkeB ---