Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan't Minimize windows Pin
Max++13-Aug-06 14:59
Max++13-Aug-06 14:59 
AnswerRe: Can't Minimize windows Pin
Waldermort13-Aug-06 15:04
Waldermort13-Aug-06 15:04 
Questionversioninfo problems Pin
Waldermort13-Aug-06 10:29
Waldermort13-Aug-06 10:29 
QuestionHow to change window RTL in RUNTIME? Pin
Kamyar Souri13-Aug-06 7:21
Kamyar Souri13-Aug-06 7:21 
QuestionLNK2005 error - first program with classes Pin
senthryl13-Aug-06 4:21
senthryl13-Aug-06 4:21 
AnswerRe: LNK2005 error - first program with classes Pin
Chris Losinger13-Aug-06 4:45
professionalChris Losinger13-Aug-06 4:45 
GeneralRe: LNK2005 error - first program with classes Pin
senthryl13-Aug-06 5:07
senthryl13-Aug-06 5:07 
GeneralRe: LNK2005 error - first program with classes [modified] Pin
Chris Losinger13-Aug-06 5:14
professionalChris Losinger13-Aug-06 5:14 
they should be in different files (except in special cases like inline functions or templates - which you don't need to worry about here).

and you should only #include the .H files. somtimes .H files will #include other .H files.

senthryl wrote:
In the book they include the .cpp definition file from their main file, which then includes the .h declaration file at the top.


that's very very unusual - there's almost no good reason to do that in 99.99% of the situations you're likely encounter. they might be trying to get out of telling the compiler to explicity compile the .CPP (by #including it, the compiler will compile it as part of the main file), but with Visual Studio, it's trivial to add the .CPP to the project so the compler can compile it separately.


-- modified at 11:16 Sunday 13th August, 2006


GeneralRe: LNK2005 error - first program with classes [modified] Pin
senthryl13-Aug-06 5:20
senthryl13-Aug-06 5:20 
GeneralRe: LNK2005 error - first program with classes Pin
Chris Losinger13-Aug-06 5:31
professionalChris Losinger13-Aug-06 5:31 
GeneralRe: LNK2005 error - first program with classes Pin
senthryl13-Aug-06 5:44
senthryl13-Aug-06 5:44 
GeneralRe: LNK2005 error - first program with classes Pin
Chris Losinger13-Aug-06 8:41
professionalChris Losinger13-Aug-06 8:41 
GeneralRe: LNK2005 error - first program with classes Pin
Mike Dimmick13-Aug-06 5:28
Mike Dimmick13-Aug-06 5:28 
QuestionGetting friend member functions to work Pin
Joel Becker13-Aug-06 2:11
Joel Becker13-Aug-06 2:11 
AnswerRe: Getting friend member functions to work Pin
Mike Dimmick13-Aug-06 5:30
Mike Dimmick13-Aug-06 5:30 
GeneralRe: Getting friend member functions to work Pin
Joel Becker13-Aug-06 7:13
Joel Becker13-Aug-06 7:13 
AnswerRe: Getting friend member functions to work Pin
Bartosz Bien13-Aug-06 11:11
Bartosz Bien13-Aug-06 11:11 
GeneralRe: Getting friend member functions to work Pin
Joel Becker13-Aug-06 11:22
Joel Becker13-Aug-06 11:22 
GeneralRe: Getting friend member functions to work [modified] Pin
Bartosz Bien13-Aug-06 11:47
Bartosz Bien13-Aug-06 11:47 
GeneralRe: Getting friend member functions to work Pin
Joel Becker13-Aug-06 12:22
Joel Becker13-Aug-06 12:22 
QuestionString problem [modified] Pin
73Zeppelin13-Aug-06 1:28
73Zeppelin13-Aug-06 1:28 
GeneralRe: String problem Pin
ovidiucucu13-Aug-06 2:40
ovidiucucu13-Aug-06 2:40 
QuestionHow to print the text in the new line of a multi line edit box . Pin
VCSharp00713-Aug-06 1:02
VCSharp00713-Aug-06 1:02 
AnswerRe: How to print the text in the new line of a multi line edit box . Pin
ovidiucucu13-Aug-06 2:44
ovidiucucu13-Aug-06 2:44 
GeneralRe: How to print the text in the new line of a multi line edit box . Pin
Bram van Kampen13-Aug-06 14:54
Bram van Kampen13-Aug-06 14:54 

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.