问题
I'm trying to pipe io through a terminal application as per microsoft's documentation (http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx). The problem is, when I add this code, it pops up a big black empty box / terminal / console window. I don't want it to do that.
Suggestions?
Thanks!
回答1:
Make sure that the dwFlags member of the STARTUPINFO structure has the STARTF_USESHOWWINDOW bit set and that the wShowWindow is set to SW_HIDE. That should work
回答2:
You need to padd CREATE_NO_WINDOW
flag to create process check the createprocess documentation on creation flags.
来源:https://stackoverflow.com/questions/4005506/windows-c-pipe-creates-big-black-terminal-window