Click here to Skip to main content
15,909,498 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: No of v-tables??? Pin
Paresh Chitte2-Jun-08 18:33
Paresh Chitte2-Jun-08 18:33 
AnswerRe: No of v-tables??? Pin
_AnsHUMAN_ 2-Jun-08 18:37
_AnsHUMAN_ 2-Jun-08 18:37 
QuestionHow to compare stderr to stdout Pin
DQNOK2-Jun-08 10:26
professionalDQNOK2-Jun-08 10:26 
QuestionRe: How to compare stderr to stdout Pin
David Crow2-Jun-08 11:01
David Crow2-Jun-08 11:01 
AnswerRe: How to compare stderr to stdout Pin
DQNOK2-Jun-08 11:11
professionalDQNOK2-Jun-08 11:11 
AnswerRe: How to compare stderr to stdout Pin
Nibu babu thomas2-Jun-08 17:11
Nibu babu thomas2-Jun-08 17:11 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 3:22
professionalDQNOK3-Jun-08 3:22 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 8:43
professionalDQNOK3-Jun-08 8:43 
Nibu babu thomas wrote:
Does GetStdHandle() help?


From reading the MSDN site, I thought it would; but it doesn't do what I thought.

   HANDLE  stderrHndl = GetStdHandle(STD_ERROR_HANDLE);
   HANDLE  stdoutHndl = GetStdHandle(STD_OUTPUT_HANDLE);

...
(very incomplete!)

   vfprintf( stderr, msg, args );

   if( stderrHndl == stdoutHndl ) //still ALWAYS tests FALSE
      goto logprint; //skip printing to stdout

   vfprintf( stdout, msg, args );
logprint:

Because the stderrHndl == stdoutHndl is always evaluating to FALSE, I'm still double printing to the console.

David

AnswerRe: How to compare stderr to stdout Pin
maxie20052-Jun-08 19:12
maxie20052-Jun-08 19:12 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 3:17
professionalDQNOK3-Jun-08 3:17 
Question'LONG' to 'int' [modified] Pin
Queeny2-Jun-08 10:14
Queeny2-Jun-08 10:14 
QuestionRe: 'LONG' to 'int' Pin
Mark Salsbery2-Jun-08 10:25
Mark Salsbery2-Jun-08 10:25 
AnswerRe: 'LONG' to 'int' Pin
Queeny2-Jun-08 14:43
Queeny2-Jun-08 14:43 
GeneralRe: 'LONG' to 'int' Pin
Mark Salsbery3-Jun-08 4:58
Mark Salsbery3-Jun-08 4:58 
AnswerRe: 'LONG' to 'int' Pin
DQNOK2-Jun-08 10:36
professionalDQNOK2-Jun-08 10:36 
AnswerRe: 'LONG' to 'int' Pin
Kwanalouie2-Jun-08 14:58
Kwanalouie2-Jun-08 14:58 
AnswerRe: 'LONG' to 'int' Pin
Akt_4_U2-Jun-08 20:44
Akt_4_U2-Jun-08 20:44 
QuestionChar * to wstring conversion Pin
jinbabaj2-Jun-08 7:37
jinbabaj2-Jun-08 7:37 
QuestionRe: Char * to wstring conversion Pin
David Crow2-Jun-08 7:56
David Crow2-Jun-08 7:56 
AnswerRe: Char * to wstring conversion Pin
Nemanja Trifunovic2-Jun-08 8:33
Nemanja Trifunovic2-Jun-08 8:33 
AnswerRe: Char * to wstring conversion Pin
Nemanja Trifunovic2-Jun-08 8:30
Nemanja Trifunovic2-Jun-08 8:30 
QuestionHow to get the file icon and insert to listctrl? Pin
york5282-Jun-08 7:07
york5282-Jun-08 7:07 
AnswerRe: How to get the file icon and insert to listctrl? Pin
Jijo.Raj2-Jun-08 7:34
Jijo.Raj2-Jun-08 7:34 
GeneralRe: How to get the file icon and insert to listctrl? Pin
york5282-Jun-08 23:31
york5282-Jun-08 23:31 
AnswerRe: How to get the file icon and insert to listctrl? Pin
Hamid_RT3-Jun-08 1:28
Hamid_RT3-Jun-08 1:28 

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.