Click here to Skip to main content
15,889,831 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using COM Object Invalid Pointer Error Pin
Jeff Archer2-Dec-09 2:10
Jeff Archer2-Dec-09 2:10 
Questionc++ reading a large text file with fstream Pin
nuttynibbles26-Nov-09 22:24
nuttynibbles26-Nov-09 22:24 
AnswerRe: c++ reading a large text file with fstream Pin
T210226-Nov-09 22:36
T210226-Nov-09 22:36 
GeneralRe: c++ reading a large text file with fstream Pin
nuttynibbles26-Nov-09 22:50
nuttynibbles26-Nov-09 22:50 
GeneralRe: c++ reading a large text file with fstream Pin
nuttynibbles26-Nov-09 22:59
nuttynibbles26-Nov-09 22:59 
GeneralRe: c++ reading a large text file with fstream Pin
Richard MacCutchan26-Nov-09 23:36
mveRichard MacCutchan26-Nov-09 23:36 
GeneralRe: c++ reading a large text file with fstream Pin
nuttynibbles27-Nov-09 2:01
nuttynibbles27-Nov-09 2:01 
QuestionAccessing the command line via Visual C++ Pin
N. Rackley26-Nov-09 21:57
N. Rackley26-Nov-09 21:57 
Hey everyone!

I'm currently working on a project that is going to require access to various command line applications. Mostly in order to grab status updates from various processes that are running on the system.

A sample of the command line program would be as follows:
C:\Program\Folder>System.exe -Enable "10:22:00" -Disable "10:23:00"
SYSTEM ONLINE - 11/25/2009 10:22:35 GMT
SYSTEM ONLINE - 11/25/2009 10:22:40 GMT
SYSTEM ONLINE - 11/25/2009 10:22:45 GMT
SYSTEM ONLINE - 11/25/2009 10:22:50 GMT
SYSTEM ONLINE - 11/25/2009 10:22:55 GMT
SYSTEM OFFLINE - 11/25/2009 10:23:00 GMT
SYSTEM OFFLINE - 11/25/2009 10:23:05 GMT
SYSTEM OFFLINE - 11/25/2009 10:23:10 GMT

Etc. Etc. Etc.

I need to be able to grab that system status from this and other programs and return them to a GUI application in Visual C++.

How can I grab the resultant output of the console as a string? I realize that many people simply dump the data to a file and then read from the file, but I'm looking for something a bit more direct. Is this even the correct way to approach the problem of grabbing status from an external process? My restrictions are that it does have to be for Windows and in Visual C++.

Thanks for the help!

-N. Rackley
AnswerRe: Accessing the command line via Visual C++ Pin
Richard MacCutchan27-Nov-09 2:19
mveRichard MacCutchan27-Nov-09 2:19 
AnswerRe: Accessing the command line via Visual C++ Pin
Michael Schubert27-Nov-09 2:35
Michael Schubert27-Nov-09 2:35 
Questionchange font colour Pin
sonualex26-Nov-09 21:56
sonualex26-Nov-09 21:56 
AnswerRe: change font colour Pin
Richard MacCutchan26-Nov-09 23:51
mveRichard MacCutchan26-Nov-09 23:51 
GeneralRe: change font colour Pin
sonualex2-Dec-09 18:28
sonualex2-Dec-09 18:28 
GeneralRe: change font colour Pin
Richard MacCutchan2-Dec-09 23:46
mveRichard MacCutchan2-Dec-09 23:46 
QuestionHow can I get the XP appearance combobox with VC6.0? Pin
wanglinhai88826-Nov-09 15:55
wanglinhai88826-Nov-09 15:55 
AnswerRe: How can I get the XP appearance combobox with VC6.0? Pin
JohnCz26-Nov-09 17:45
JohnCz26-Nov-09 17:45 
GeneralRe: How can I get the XP appearance combobox with VC6.0? Pin
wanglinhai8886-Dec-09 19:18
wanglinhai8886-Dec-09 19:18 
AnswerRe: How can I get the XP appearance combobox with VC6.0? Pin
krmed27-Nov-09 3:59
krmed27-Nov-09 3:59 
GeneralRe: How can I get the XP appearance combobox with VC6.0? Pin
wanglinhai8886-Dec-09 19:20
wanglinhai8886-Dec-09 19:20 
AnswerRe: How can I get the XP appearance combobox with VC6.0? Pin
JohnCz7-Dec-09 16:00
JohnCz7-Dec-09 16:00 
QuestionMapped Drives Pin
Bram van Kampen26-Nov-09 15:02
Bram van Kampen26-Nov-09 15:02 
AnswerRe: Mapped Drives Pin
Garth J Lancaster26-Nov-09 16:51
professionalGarth J Lancaster26-Nov-09 16:51 
AnswerSee this .. Pin
Garth J Lancaster26-Nov-09 16:57
professionalGarth J Lancaster26-Nov-09 16:57 
GeneralRe: See this .. Pin
T210226-Nov-09 19:33
T210226-Nov-09 19:33 
GeneralRe: See this .. Pin
Garth J Lancaster26-Nov-09 19:47
professionalGarth J Lancaster26-Nov-09 19:47 

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.