我使用system()会弹出控制台,改使用winexec . createthread. shellexecute等不能
实现任务。我只能使用system(),但是如何关闭控制台,或隐藏控制台,或最小化控制台。
实现任务。我只能使用system(),但是如何关闭控制台,或隐藏控制台,或最小化控制台。
解决方案 »
- printf对iocp线程的影响,SOCKET大牛进来看看,解决就给分,绝不赖账。
- 如何响应双击listctrl中的行
- 用MFC编程时,如果能适当采用STL里东西,是不是会有事半功倍的效果?
- error C2065: 'bShiftdown' : undeclared identifier帮我解决一下,3Q~
- VS2005装了SP1后版本号是多少》?
- autocad的dwg或dxf文件解析(付费)
- 这是什么问题,重试和切换都不好使!
- TCP/IP协议, 当服务器连接多个客户端时, 怎样判断是哪个客户端发来的请求。
- 请问我为什么在 Rich Edit Controls中通过linelength() 获得的总是第行的长度??
- 不用控件变量,如何改变一个Check Box的选中状态?
- 如何用new来重新分配内存空间
- 怎么编程修改注册表…………(请各位大侠不吝指教!)
You can specify a console for console application so that it doesn't create a new console as it runs. Related API:AllocConsole, CreateProcess.
Or you can redirect their output to somewhere else in order to solve your problem. Hope the following links are useful to you.
http://codeguru.earthweb.com/console/QuickWin.shtml
在dwCreationFlags 中用CREATE_NEW_CONSOLE参数