Capture Output of Spawned Process to string

后端 未结 3 393
别跟我提以往
别跟我提以往 2020-11-29 10:52

Background:


I\'m working on a program that needs to be able to capture the stdout, stderr and return values of a pro

3条回答
  •  清歌不尽
    2020-11-29 11:21

    You'll have to use pipes to capture the contents of your process's stdout stream. There's an elaborate example on MSDN on how to accomplish this:

    MSDN: Creating a Child Process with Redirected Input and Output

提交回复
热议问题