Jeff Taylor
2008-03-23 15:46:33 UTC
Hi-
I'm an old time C programmer who is only recently trying to figure out C++.
I'm using C++ Builder to create a front end for a command line C program. Throughout the C program, it writes to stdout using printf statements. My front end has a Memo box that I would like to direct this output to but I don't know how to go about it. Could someone show me how to create a stream that I can use "cout" type syntax with (i.e. cout << "Print this" + "and that.") and then somehow connect the stream to the Memo box? OR maybe there is some other better way?
Thanks for the help!
I'm an old time C programmer who is only recently trying to figure out C++.
I'm using C++ Builder to create a front end for a command line C program. Throughout the C program, it writes to stdout using printf statements. My front end has a Memo box that I would like to direct this output to but I don't know how to go about it. Could someone show me how to create a stream that I can use "cout" type syntax with (i.e. cout << "Print this" + "and that.") and then somehow connect the stream to the Memo box? OR maybe there is some other better way?
Thanks for the help!