Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTo set icon size Pin
Sammyuk19-Apr-07 2:14
Sammyuk19-Apr-07 2:14 
QuestionRe: To set icon size Pin
Hamid_RT19-Apr-07 8:09
Hamid_RT19-Apr-07 8:09 
AnswerRe: To set icon size Pin
Mark Salsbery19-Apr-07 9:02
Mark Salsbery19-Apr-07 9:02 
Questionview problem Pin
john563219-Apr-07 2:02
john563219-Apr-07 2:02 
QuestionRe: view problem Pin
David Crow19-Apr-07 2:44
David Crow19-Apr-07 2:44 
Questioncopy constructor and assignment operator Pin
Kiran Pinjala19-Apr-07 2:00
Kiran Pinjala19-Apr-07 2:00 
AnswerRe: copy constructor and assignment operator [modified] Pin
Paresh Chitte19-Apr-07 2:07
Paresh Chitte19-Apr-07 2:07 
AnswerRe: copy constructor and assignment operator Pin
Roger Stoltz19-Apr-07 2:10
Roger Stoltz19-Apr-07 2:10 
If your class have member variables that are pointers and/or allocate memory, you have to write a copy constructor and assignment operator. Probably even a "==" operator.
If you don't, the compiler will create those for you and they won't behave the way you want them to. It creates shallow copies, performs member wise comparison and so forth.

You can assume that you should write a copy constructor for each class you develop.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

AnswerRe: copy constructor and assignment operator Pin
Cedric Moonen19-Apr-07 2:10
Cedric Moonen19-Apr-07 2:10 
Questionx86 Platform Pin
Sunshine Always19-Apr-07 1:57
Sunshine Always19-Apr-07 1:57 
AnswerRe: x86 Platform Pin
JudyL_MD19-Apr-07 3:15
JudyL_MD19-Apr-07 3:15 
GeneralRe: x86 Platform Pin
Sunshine Always19-Apr-07 19:05
Sunshine Always19-Apr-07 19:05 
GeneralRe: x86 Platform Pin
JudyL_MD20-Apr-07 2:25
JudyL_MD20-Apr-07 2:25 
QuestionInheritance Pin
Kiran Pinjala19-Apr-07 1:52
Kiran Pinjala19-Apr-07 1:52 
AnswerRe: Inheritance Pin
CPallini19-Apr-07 1:57
mveCPallini19-Apr-07 1:57 
GeneralRe: Inheritance Pin
Kiran Pinjala19-Apr-07 2:02
Kiran Pinjala19-Apr-07 2:02 
QuestionMFC Pin
SumitMandal19-Apr-07 1:32
SumitMandal19-Apr-07 1:32 
AnswerRe: MFC Pin
Joan M19-Apr-07 1:41
professionalJoan M19-Apr-07 1:41 
AnswerRe: MFC Pin
jhwurmbach19-Apr-07 1:42
jhwurmbach19-Apr-07 1:42 
AnswerRe: MFC Pin
CPallini19-Apr-07 1:52
mveCPallini19-Apr-07 1:52 
AnswerRe: MFC Pin
Paresh Chitte19-Apr-07 2:23
Paresh Chitte19-Apr-07 2:23 
AnswerRe: MFC Pin
Maximilien19-Apr-07 2:34
Maximilien19-Apr-07 2:34 
AnswerRe: MFC Pin
Mark Salsbery19-Apr-07 9:06
Mark Salsbery19-Apr-07 9:06 
QuestionCWinThread use Pin
CDRAIN19-Apr-07 1:15
CDRAIN19-Apr-07 1:15 
AnswerRe: CWinThread use Pin
Roger Stoltz19-Apr-07 2:17
Roger Stoltz19-Apr-07 2:17 

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.