In its own window procedure, run a console application, written by Delphi, I called him for B program, the console application will be kept in the console output some content, and then I want to capture the output of real-time information, how to do? Using pipeline can only be in after the completion of the program is running to get B, but B program will run for a long, long time, will keep in the operation of the feedback some information to the console, now I want to add a shell in the B program, more convenient use, can give great god to a real-time access to console output,
By climbing, know a problem now, this is the program just printf and no flush, B cannot live, but I write a for loop console procedures, in circulation Writeln (s) and output information, and then through the pipe can capture, but not a B program anyway,