Click here to Skip to main content
14,934,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWriting integer values to file using streams [modified] Pin
Cyrilix6-Sep-07 12:33
MemberCyrilix6-Sep-07 12:33 
AnswerRe: Writing integer values to file using streams Pin
Mark Salsbery6-Sep-07 14:29
MemberMark Salsbery6-Sep-07 14:29 
GeneralRe: Writing integer values to file using streams Pin
Cyrilix6-Sep-07 14:36
MemberCyrilix6-Sep-07 14:36 
GeneralRe: Writing integer values to file using streams Pin
Mark Salsbery6-Sep-07 16:18
MemberMark Salsbery6-Sep-07 16:18 
GeneralRe: Writing integer values to file using streams Pin
Cyrilix6-Sep-07 16:57
MemberCyrilix6-Sep-07 16:57 
QuestionOverride afx msg box (pop up) Pin
AeJai6-Sep-07 10:04
MemberAeJai6-Sep-07 10:04 
AnswerRe: Override afx msg box (pop up) Pin
Mark Salsbery6-Sep-07 13:53
MemberMark Salsbery6-Sep-07 13:53 
QuestionConsole redirection Pin
Waldermort6-Sep-07 9:22
MemberWaldermort6-Sep-07 9:22 
I know there are numerous articles on this topic, but I haven't found a solution to my problem.

From my GUI app I launch a stub process which is supposed to give me real time feedback on the output of a third console. Basically I set up the pipes and handles from the GUI, launch the stub which inturn modifies it's screen buffer and launches the real console. All the handles are inherited correctly, until I modify the memory of the real console.

I coded the stub to start the new process with the CREATE_SUSPENDED flag set, it also returns the ID's back to the GUI. From there I modify the memory and call ResumeThread(). But, for some reason, the STD_OUTPUT_HANDLE which it should have inherited from the stub has been lost. I have verified that the real console is indeed running, though it has no 'visible' screen buffer to output it's contents to.

Through inheritance, I do get the screen contents, but not in real time and without any of the modifications that the stub was supposed to perform.

Any ideas as to how or why this might have happened? Is there any way I can reset the std_output handle after a call to CreateProcess() ?
AnswerRe: Console redirection Pin
Waldermort6-Sep-07 11:59
MemberWaldermort6-Sep-07 11:59 
QuestionIs there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
abiemann6-Sep-07 7:00
Memberabiemann6-Sep-07 7:00 
QuestionRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
David Crow6-Sep-07 7:09
MemberDavid Crow6-Sep-07 7:09 
AnswerRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
abiemann6-Sep-07 7:36
Memberabiemann6-Sep-07 7:36 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? [modified] Pin
abiemann6-Sep-07 8:03
Memberabiemann6-Sep-07 8:03 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
Mark Salsbery6-Sep-07 8:22
MemberMark Salsbery6-Sep-07 8:22 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
Mark Salsbery6-Sep-07 8:27
MemberMark Salsbery6-Sep-07 8:27 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? [modified] Pin
abiemann6-Sep-07 8:33
Memberabiemann6-Sep-07 8:33 
QuestionRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
David Crow6-Sep-07 8:41
MemberDavid Crow6-Sep-07 8:41 
AnswerRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
abiemann6-Sep-07 8:52
Memberabiemann6-Sep-07 8:52 
QuestionRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
David Crow6-Sep-07 8:56
MemberDavid Crow6-Sep-07 8:56 
AnswerRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
abiemann6-Sep-07 9:00
Memberabiemann6-Sep-07 9:00 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
David Crow6-Sep-07 10:20
MemberDavid Crow6-Sep-07 10:20 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? [modified] Pin
abiemann6-Sep-07 13:08
Memberabiemann6-Sep-07 13:08 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
Mark Salsbery6-Sep-07 14:31
MemberMark Salsbery6-Sep-07 14:31 
GeneralRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
David Crow6-Sep-07 17:30
MemberDavid Crow6-Sep-07 17:30 
QuestionRe: Is there an equivalent to SuspendLayout/ResumeLayout for a MFC Dialog ? Pin
Hamid_RT6-Sep-07 7:33
MemberHamid_RT6-Sep-07 7:33 

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.