Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrinting mirror image Pin
CodeHead7-Jun-04 2:13
CodeHead7-Jun-04 2:13 
GeneralRe: Printing mirror image Pin
Roger Allen7-Jun-04 2:56
Roger Allen7-Jun-04 2:56 
GeneralSetWorldTransform() not work for printing? Pin
CodeHead7-Jun-04 9:57
CodeHead7-Jun-04 9:57 
GeneralCryptGetHashParam Pin
Ni@m7-Jun-04 0:41
Ni@m7-Jun-04 0:41 
GeneralRe: CryptGetHashParam Pin
Mike Dimmick7-Jun-04 4:57
Mike Dimmick7-Jun-04 4:57 
GeneralConstructor problem - setting members Pin
Anonymous7-Jun-04 0:16
Anonymous7-Jun-04 0:16 
GeneralRe: Constructor problem - setting members Pin
bneacetp7-Jun-04 0:29
bneacetp7-Jun-04 0:29 
GeneralRe: Constructor problem - setting members Pin
thowra7-Jun-04 1:01
thowra7-Jun-04 1:01 
In a nutshell, you can't call a constructor from a constructor of the same class if you want to initialise the this object.

In your CMyObject::CMyObject(const char *title) constructor, the line CMyObject(); doesn't call CMyObject::CMyObject() on the this object. Instead it calls CMyObject::CMyObject() to initialise a local, temporary object. This is then destroyed as it goes out of scope when construction ends.

So bneacetp is right when he suggests providing an initialisation function.

"Oh, I'm sick of doing Japanese stuff! In jail we had to be in this dumb kabuki play about the 47 Ronin, and I wanted to be Oshi, but they made me Ori!"

GeneralCreate a GUID to uniquely identify a machine. Pin
Member 11501767-Jun-04 0:06
Member 11501767-Jun-04 0:06 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Anonymous7-Jun-04 1:58
Anonymous7-Jun-04 1:58 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Joel Lucsy8-Jun-04 2:59
Joel Lucsy8-Jun-04 2:59 
QuestionHow to set Font of CStatic Control through Program.. Pin
Sumit Kapoor6-Jun-04 23:59
Sumit Kapoor6-Jun-04 23:59 
AnswerRe: How to set Font of CStatic Control through Program.. Pin
bneacetp7-Jun-04 0:18
bneacetp7-Jun-04 0:18 
GeneralRe: Still not work...also Pin
Sumit Kapoor7-Jun-04 0:34
Sumit Kapoor7-Jun-04 0:34 
GeneralRe: Still not work...also Pin
Johan Rosengren7-Jun-04 3:26
Johan Rosengren7-Jun-04 3:26 
GeneralRe: Forget ALSO... Pin
Sumit Kapoor7-Jun-04 0:36
Sumit Kapoor7-Jun-04 0:36 
GeneralRe: Forget ALSO... Pin
jmkhael7-Jun-04 4:50
jmkhael7-Jun-04 4:50 
GeneralNavigating through CForimView controls Pin
dart136-Jun-04 23:59
dart136-Jun-04 23:59 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren7-Jun-04 6:10
Johan Rosengren7-Jun-04 6:10 
GeneralRe: Navigating through CForimView controls Pin
dart138-Jun-04 1:07
dart138-Jun-04 1:07 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren8-Jun-04 1:24
Johan Rosengren8-Jun-04 1:24 
GeneralPrblm in video capturing Pin
Zeeshan Bilal6-Jun-04 23:32
Zeeshan Bilal6-Jun-04 23:32 
QuestionRetrieving control's original class by its ID? Pin
Daredevil6-Jun-04 23:13
Daredevil6-Jun-04 23:13 
AnswerRe: Retrieving control's original class by its ID? Pin
Andrew Quinn AUS6-Jun-04 23:33
Andrew Quinn AUS6-Jun-04 23:33 
AnswerRe: Retrieving control's original class by its ID? Pin
David Crow7-Jun-04 2:10
David Crow7-Jun-04 2:10 

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.