M
Michael Shestero
Hello.
I have three question about ofstream and ifstream.
1. I have a function that writes some text-output into ofstream. The
reference to that ofstream it got as a parameter. I have no access to source
code of it. I need redirect the output to somehing, for example to a CEdit
control.
2. I have a function that writes some text into cerr (stderr). No
parameters. No access to source code. I need redirect the output to
somehing, for example to a CEdit control.
3. I have a function that reads text from cin (stdin). No parameters. No
access to source code. I need to send into this function text from my char[]
or from CEdit control.
I know a bit about redirection of stdin and stdout for a child process using
pipes and streambuf overlapping. But there is only one process in my
application.
I can create a thread, but I don't want it.
Best regards,
Shestero Michael
I have three question about ofstream and ifstream.
1. I have a function that writes some text-output into ofstream. The
reference to that ofstream it got as a parameter. I have no access to source
code of it. I need redirect the output to somehing, for example to a CEdit
control.
2. I have a function that writes some text into cerr (stderr). No
parameters. No access to source code. I need redirect the output to
somehing, for example to a CEdit control.
3. I have a function that reads text from cin (stdin). No parameters. No
access to source code. I need to send into this function text from my char[]
or from CEdit control.
I know a bit about redirection of stdin and stdout for a child process using
pipes and streambuf overlapping. But there is only one process in my
application.
I can create a thread, but I don't want it.
Best regards,
Shestero Michael