Click here to Skip to main content
15,905,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRenameing Resource.h Pin
Prakash Nadar9-Dec-03 3:28
Prakash Nadar9-Dec-03 3:28 
GeneralRe: Renameing Resource.h Pin
Alexander M.,9-Dec-03 4:54
Alexander M.,9-Dec-03 4:54 
GeneralPlease Help with my Switching View Problem Pin
swerajan9-Dec-03 3:04
swerajan9-Dec-03 3:04 
GeneralRe: Please Help with my Switching View Problem Pin
Joel Lucsy9-Dec-03 3:25
Joel Lucsy9-Dec-03 3:25 
GeneralRe: Please Help with my Switching View Problem Pin
Michael P Butler9-Dec-03 3:27
Michael P Butler9-Dec-03 3:27 
GeneralBasic question on Pointers!! Pin
Ilamparithi9-Dec-03 2:35
Ilamparithi9-Dec-03 2:35 
GeneralRe: Basic question on Pointers!! Pin
Taka Muraoka9-Dec-03 2:46
Taka Muraoka9-Dec-03 2:46 
GeneralRe: Basic question on Pointers!! Pin
jmkhael9-Dec-03 2:46
jmkhael9-Dec-03 2:46 
GeneralCCombobox than Dropdown! Pin
Wholesaler9-Dec-03 1:57
Wholesaler9-Dec-03 1:57 
GeneralRe: CCombobox than Dropdown! Pin
Antti Keskinen9-Dec-03 2:39
Antti Keskinen9-Dec-03 2:39 
GeneralRe: CCombobox than Dropdown! Pin
Wholesaler9-Dec-03 2:49
Wholesaler9-Dec-03 2:49 
GeneralRe: CCombobox than Dropdown! Pin
RChin9-Dec-03 3:09
RChin9-Dec-03 3:09 
GeneralRe: CCombobox than Dropdown! Pin
Wholesaler9-Dec-03 3:17
Wholesaler9-Dec-03 3:17 
GeneralRe: CCombobox than Dropdown! Pin
RChin9-Dec-03 3:21
RChin9-Dec-03 3:21 
GeneralRe: CCombobox than Dropdown! Pin
Antti Keskinen9-Dec-03 3:14
Antti Keskinen9-Dec-03 3:14 

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.