jackmack
2nd August 2010, 09:17
Hi,
I use QProcess to start a simple MFC application (dialog based).
Now I want to communicate between QProcess and the MFC dialog about stdout/in.
It seems the stdout/in function is not supported basically in MFC apps. The MFC dialog uses a timer function for periodic writing to stdout like
fprintf(stdout, "hallo");
fflush(stdout);
But QProcess::readyReadStandardOutput() is never called.
I have also called setReadChannel() to StandartOutput.
I think the problem is on MFC dialogs side.
Have anybody an idea or solution how I can solve that?
Thanks.
I use QProcess to start a simple MFC application (dialog based).
Now I want to communicate between QProcess and the MFC dialog about stdout/in.
It seems the stdout/in function is not supported basically in MFC apps. The MFC dialog uses a timer function for periodic writing to stdout like
fprintf(stdout, "hallo");
fflush(stdout);
But QProcess::readyReadStandardOutput() is never called.
I have also called setReadChannel() to StandartOutput.
I think the problem is on MFC dialogs side.
Have anybody an idea or solution how I can solve that?
Thanks.