B
Bugenhagen
Hello
I'm attempting to develop an application using MFC. In the application, I
would like to integrate a previously written C program that uses 'printf' to
display information to the user. What I want to do is instead of printing to
a console, print to a window in my MFC application. I've been trying to
research how to do this and the information I've found so far leads me to
believe that I can achieve this by manipulating I/O streams and buffers.
However, I'm having trouble finding a good example. My inquiry is two-fold.
1. What's the best way to redirect the input and output stream of a console
application to an MFC application? 2. Assuming I figure that out, what is
the best MFC control to use specifically to display output from the I/O
stream? I'm thinking of using a Static Text control but there may be a
better one.
TIA
I'm attempting to develop an application using MFC. In the application, I
would like to integrate a previously written C program that uses 'printf' to
display information to the user. What I want to do is instead of printing to
a console, print to a window in my MFC application. I've been trying to
research how to do this and the information I've found so far leads me to
believe that I can achieve this by manipulating I/O streams and buffers.
However, I'm having trouble finding a good example. My inquiry is two-fold.
1. What's the best way to redirect the input and output stream of a console
application to an MFC application? 2. Assuming I figure that out, what is
the best MFC control to use specifically to display output from the I/O
stream? I'm thinking of using a Static Text control but there may be a
better one.
TIA