Windows C++ Pipe Creates Big Black Terminal Window

社会主义新天地 提交于 2020-01-14 04:35:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!