Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Object Oriented Programming (OOP) Pin
ZackyD9-Dec-03 8:38
ZackyD9-Dec-03 8:38 
GeneralRe: Object Oriented Programming (OOP) Pin
David Crow9-Dec-03 7:05
David Crow9-Dec-03 7:05 
GeneralGetting 'MFCs' current directory Pin
Andy Latham9-Dec-03 6:10
Andy Latham9-Dec-03 6:10 
GeneralRe: Getting 'MFCs' current directory Pin
David Crow9-Dec-03 6:16
David Crow9-Dec-03 6:16 
GeneralRe: Getting 'MFCs' current directory Pin
Andy Latham9-Dec-03 6:29
Andy Latham9-Dec-03 6:29 
GeneralRe: Getting 'MFCs' current directory Pin
David Crow9-Dec-03 6:52
David Crow9-Dec-03 6:52 
GeneralRe: Getting 'MFCs' current directory Pin
valikac9-Dec-03 6:40
valikac9-Dec-03 6:40 
GeneralRe: Getting 'MFCs' current directory Pin
Andy Latham9-Dec-03 22:26
Andy Latham9-Dec-03 22:26 
GeneralRe: Getting 'MFCs' current directory Pin
valikac10-Dec-03 6:17
valikac10-Dec-03 6:17 
GeneralRe: Getting 'MFCs' current directory Pin
Andy Latham10-Dec-03 6:47
Andy Latham10-Dec-03 6:47 
GeneralRe: Getting 'MFCs' current directory Pin
valikac10-Dec-03 8:49
valikac10-Dec-03 8:49 
GeneralAbout Winamp's Plugin Visualiztion Pin
pmasknguyen9-Dec-03 5:44
pmasknguyen9-Dec-03 5:44 
GeneralRe: About Winamp's Plugin Visualiztion Pin
User 66589-Dec-03 6:46
User 66589-Dec-03 6:46 
GeneralRe: About Winamp's Plugin Visualiztion Pin
pmasknguyen9-Dec-03 21:45
pmasknguyen9-Dec-03 21:45 
GeneralVisual C++ GUI Widgets Pin
LauraLee9-Dec-03 5:37
LauraLee9-Dec-03 5:37 
GeneralRe: Visual C++ GUI Widgets Pin
Neville Franks9-Dec-03 9:13
Neville Franks9-Dec-03 9:13 
GeneralMsg must stay... Pin
Michael Pauli9-Dec-03 5:12
Michael Pauli9-Dec-03 5:12 
GeneralCustom CTreeCtrl expanded with NM_CUSTOMDRAW want to add HScrollbar Pin
sommelo19-Dec-03 4:51
sommelo19-Dec-03 4:51 
QuestionPlease help me, why I cannot open the project? Pin
zhaopzhi9-Dec-03 4:35
zhaopzhi9-Dec-03 4:35 
AnswerRe: Please help me, why I cannot open the project? Pin
Alexander M.,9-Dec-03 4:49
Alexander M.,9-Dec-03 4:49 
GeneralRe: Please help me, why I cannot open the project? Pin
zhaopzhi9-Dec-03 17:45
zhaopzhi9-Dec-03 17:45 
GeneralCapture input of the CommandWindow Pin
Adi Narayana9-Dec-03 4:22
Adi Narayana9-Dec-03 4:22 
GeneralRe: Capture input of the CommandWindow Pin
JoeZhang9-Dec-03 18:00
JoeZhang9-Dec-03 18:00 
Make the output text of that console app into a disk file instead of printing to the command window, and then read the contents of the file into a memory buffer and parse that buffer for your needs...

But how to do this in your program? here's a solution:

Dynamically generate a .BAT batch file in your program, the contents of this batch file is like this:

consoleApp.exe >> c:\output.txt

Here, consoleApp.exe is the filename of that console app you want to capture its output, and then launch this batch file via CreateProcess win32 API. After the end of console app, what its outputs are placed into the output.txt file...

Hope this helps.Laugh | :laugh:
GeneralUDP Muticast Pin
suiram409-Dec-03 3:58
suiram409-Dec-03 3:58 
GeneralRe: UDP Muticast Pin
Alexander M.,9-Dec-03 4:50
Alexander M.,9-Dec-03 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.