Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to format my xml file? Pin
ThatsAlok28-Oct-06 1:43
ThatsAlok28-Oct-06 1:43 
GeneralRe: how to format my xml file? Pin
sharkmouse2-Nov-06 21:26
sharkmouse2-Nov-06 21:26 
QuestionHow to get all the flash's url from IHTMLDoument? Pin
314159265326-Oct-06 17:36
314159265326-Oct-06 17:36 
AnswerRe: How to get all the flash's url from IHTMLDoument? Pin
ThatsAlok28-Oct-06 1:30
ThatsAlok28-Oct-06 1:30 
AnswerRe: How to get all the flash's url from IHTMLDoument? Pin
ThatsAlok28-Oct-06 1:30
ThatsAlok28-Oct-06 1:30 
Question.Net Windows App installation Pin
vinkprasad26-Oct-06 16:31
vinkprasad26-Oct-06 16:31 
AnswerRe: .Net Windows App installation Pin
Lord Kixdemp27-Oct-06 8:21
Lord Kixdemp27-Oct-06 8:21 
Questioncapture stdout and stderr of cmd.exe concurrently? [modified] Pin
queshaw26-Oct-06 13:46
queshaw26-Oct-06 13:46 
[Actually, never mind. I think the behavior I'm seeing matches the comment about printf in a child process behaving poorly due to buffering of output. The output does appear, just not immediately, presumably because it's being buffered.]

I want to create a child process (cmd.exe) that runs a batch file that will run for days or weeks or months and capture the stdout and stderr concurrently as it is happening. Do you know how I can do that?

I tried altering the example in http://support.microsoft.com/kb/190351 to use cmd.exe instead of client.exe, thinking I might be able to use separate threads for reading stdout and stderr. What I get seems to be the output from the batch file itself, but not from child processes of the batch file...

With a couple of examples I saw on this web page, they end up reading stderr first and then stdout afterwards, eventhough the code appears to be combining the stdout and stderr. I can't have that behavior, because the batch file could print output constantly to stdout and then once every 12 hours or so print something to stderr. I need to capture both stdout and stderr immediately as they are being written to.





-- modified at 13:27 Friday 27th October, 2006
QuestionDo I use wrong directshow includes? Pin
Talemin26-Oct-06 11:48
Talemin26-Oct-06 11:48 
AnswerRe: Do I use wrong directshow includes? Pin
Mark Salsbery26-Oct-06 15:21
Mark Salsbery26-Oct-06 15:21 
GeneralRe: Do I use wrong directshow includes? Pin
Talemin27-Oct-06 5:02
Talemin27-Oct-06 5:02 
GeneralRe: Do I use wrong directshow includes? Pin
Mark Salsbery27-Oct-06 6:51
Mark Salsbery27-Oct-06 6:51 
GeneralRe: Do I use wrong directshow includes? Pin
Talemin27-Oct-06 7:43
Talemin27-Oct-06 7:43 
GeneralRe: Do I use wrong directshow includes? Pin
Mark Salsbery27-Oct-06 7:53
Mark Salsbery27-Oct-06 7:53 
GeneralRe: Do I use wrong directshow includes? Pin
Mark Salsbery27-Oct-06 7:56
Mark Salsbery27-Oct-06 7:56 
GeneralRe: Do I use wrong directshow includes? Pin
Talemin27-Oct-06 11:43
Talemin27-Oct-06 11:43 
GeneralRe: Do I use wrong directshow includes? Pin
Mark Salsbery27-Oct-06 13:37
Mark Salsbery27-Oct-06 13:37 
GeneralRe: Do I use wrong directshow includes? Pin
Talemin3-Nov-06 6:56
Talemin3-Nov-06 6:56 
QuestionIs this correct initialization of MFC controls? Pin
Lord Kixdemp26-Oct-06 10:50
Lord Kixdemp26-Oct-06 10:50 
AnswerRe: Is this correct initialization of MFC controls? Pin
David Crow26-Oct-06 10:58
David Crow26-Oct-06 10:58 
GeneralRe: Is this correct initialization of MFC controls? Pin
Lord Kixdemp26-Oct-06 11:33
Lord Kixdemp26-Oct-06 11:33 
GeneralRe: Is this correct initialization of MFC controls? Pin
Hamid_RT26-Oct-06 20:44
Hamid_RT26-Oct-06 20:44 
GeneralRe: Is this correct initialization of MFC controls? Pin
Lord Kixdemp27-Oct-06 8:15
Lord Kixdemp27-Oct-06 8:15 
GeneralRe: Is this correct initialization of MFC controls? Pin
Hamid_RT27-Oct-06 21:28
Hamid_RT27-Oct-06 21:28 
AnswerRe: Question about modeless dialog box Pin
David Crow26-Oct-06 11:02
David Crow26-Oct-06 11:02 

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.