Click here to Skip to main content
15,881,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is contained in iostream and std Pin
jschell29-Nov-17 12:39
jschell29-Nov-17 12:39 
QuestionC++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_27-Nov-17 14:23
Vaclav_27-Nov-17 14:23 
QuestionRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow27-Nov-17 16:47
David Crow27-Nov-17 16:47 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
CPallini27-Nov-17 21:31
mveCPallini27-Nov-17 21:31 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt27-Nov-17 21:26
professionalJochen Arndt27-Nov-17 21:26 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan27-Nov-17 21:53
mveRichard MacCutchan27-Nov-17 21:53 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 4:09
Vaclav_28-Nov-17 4:09 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 4:25
mveRichard MacCutchan28-Nov-17 4:25 
Why do you #define MY_DEBUG in that header file since it serves no purpose? You should write code that depends on #define statements,but only use the #define at the beginning of your source code. Something like (note the correct use of <pre> tags):
C++
// some .h file
#if defined(SOME_TAG)
// statements to be included if SOME_TAG is defined
#endif

// main .cpp file
#define SOME_TAG // or not as the case may be
#include some .h file

// other code including blocks like ...
#if defined(SOME_TAG)
// statements to be included if SOME_TAG is defined
#endif

GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 7:07
Vaclav_28-Nov-17 7:07 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 8:37
mveRichard MacCutchan28-Nov-17 8:37 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt28-Nov-17 4:54
professionalJochen Arndt28-Nov-17 4:54 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 7:46
Vaclav_28-Nov-17 7:46 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt28-Nov-17 8:39
professionalJochen Arndt28-Nov-17 8:39 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow28-Nov-17 8:14
David Crow28-Nov-17 8:14 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 11:26
Vaclav_28-Nov-17 11:26 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
David Crow28-Nov-17 14:03
David Crow28-Nov-17 14:03 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Richard MacCutchan28-Nov-17 21:40
mveRichard MacCutchan28-Nov-17 21:40 
AnswerRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_28-Nov-17 12:25
Vaclav_28-Nov-17 12:25 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Jochen Arndt28-Nov-17 21:28
professionalJochen Arndt28-Nov-17 21:28 
GeneralRe: C++ cout in header file error - ‘cout’ was not declared in this scope Pin
Vaclav_29-Nov-17 17:36
Vaclav_29-Nov-17 17:36 
Questionem_setwordbreakproc in MFC Pin
ForNow26-Nov-17 14:05
ForNow26-Nov-17 14:05 
AnswerRe: em_setwordbreakproc in MFC Pin
Richard MacCutchan26-Nov-17 21:37
mveRichard MacCutchan26-Nov-17 21:37 
GeneralRe: em_setwordbreakproc in MFC Pin
ForNow27-Nov-17 1:52
ForNow27-Nov-17 1:52 
GeneralRe: em_setwordbreakproc in MFC Pin
Richard MacCutchan27-Nov-17 6:23
mveRichard MacCutchan27-Nov-17 6:23 
AnswerRe: em_setwordbreakproc in MFC Pin
Jochen Arndt26-Nov-17 21:46
professionalJochen Arndt26-Nov-17 21:46 

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.