I hava a small c-tool in which i execute _popen. I compile the tool for windows and linux, in linux i use instead of _popen the function popen.
These functions work well and i can get the sub-process’ output. But if i execute the function on windows (_popen) there’s a cmd-window visible. On this window there’s no ouput, but the window is visible.
Is there a way to block or hide this window?
best regards
Kevin Meier
You can call CreateProcess with the CREATE_NO_WINDOW
flag. This is obviously non portable but it does get the job done.