1

I want to run an application in c++ and read its stdout and write t stdin in windows? No popup should be generated.

Can I do it easily using windows services?

I found that I maybe able to do this with POCO, but do I really need this?

Is there solution in std library for this?

4

1 回答 1

0

您可以生成一个子进程,然后访问其标准输入和标准输出管道。您必须使用 WinAPI 来实现这一点。请参阅此处的示例:http: //msdn.microsoft.com/en-us/library/ms682499 (v=vs.85).aspx

您可以使用 Qt 和它的 QProcess 类来读/写子进程输出/输入。

于 2013-08-22T11:55:29.607 回答