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?

mans
  • 17,104
  • 45
  • 172
  • 321
  • 2
    By "popup" you mean a command prompt window? Using `stdin` and `stdout` is a lot more difficult if you don't write the code in console mode, but can be done - although standard library doesn't really support it at all well. – Mats Petersson Aug 22 '13 at 11:07

1 Answers1

0

You can spawn a child process and then gain access to its stdin and stdout pipes. You have to use WinAPI to achieve this. See example here: http://msdn.microsoft.com/en-us/library/ms682499(v=vs.85).aspx

You may use Qt and it's QProcess class to read/write child process output/input.

Archie
  • 2,644
  • 21
  • 21