我在程序中用CreateProcess调用其他的程序来执行操作,现在我想把调用程序的输出内容在我的文本框中显示出来,该如何做呢?Thx

解决方案 »

  1.   

    http://codeguru.earthweb.com/misc/redirect.shtml
    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
      

  2.   

    I try to read it,Thank you very much!
      

  3.   

    i can't speak english,would u speak chinese?