In VC++, how to access text continuously from console window and print it in a CListBox? Infact I have a MFC program which calls other FORTRAN exe. The output of the FORTRAN exe comes in the console window. I need to print it in a CListBox continuously. I can print it in a file and can print it at one shot. But that is not my purpose. I need continuous feed. Can any one help me out of this?
views:
22answers:
2
A:
_popen may work for you, see http://msdn.microsoft.com/en-us/library/96ayss4b%28VS.80%29.aspx
Evan
2009-11-07 06:21:29
A:
This Microsoft article should get you most of the way there: How to spawn console processes with redirected standard handles
Bruce Ikin
2010-03-06 23:33:48