Click here to Skip to main content
15,916,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to call a constructor in another constructor Pin
CP Visitor8-Mar-05 5:40
CP Visitor8-Mar-05 5:40 
GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz8-Mar-05 6:20
TheGreatAndPowerfulOz8-Mar-05 6:20 
GeneralRe: How to call a constructor in another constructor Pin
basementman8-Mar-05 7:09
basementman8-Mar-05 7:09 
GeneralRe: How to call a constructor in another constructor Pin
Anonymous8-Mar-05 11:48
Anonymous8-Mar-05 11:48 
GeneralRe: How to call a constructor in another constructor Pin
basementman8-Mar-05 12:30
basementman8-Mar-05 12:30 
GeneralRe: How to call a constructor in another constructor Pin
Andrew Walker8-Mar-05 11:44
Andrew Walker8-Mar-05 11:44 
GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz8-Mar-05 17:00
TheGreatAndPowerfulOz8-Mar-05 17:00 
GeneralRe: How to call a constructor in another constructor Pin
Mouse on Mars8-Mar-05 23:13
sussMouse on Mars8-Mar-05 23:13 
ahz wrote:
It may be frowned upon, and may even be abhorent, but is it not incorrect.

The original poster asked a simple direct technical question and I gave a simple direct techinically correct answer.


Wrong, wrong, wrong Frown | :( Mad | :mad: Dead | X|

From: http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.3[^]

<quote>
"BTW do NOT try to achieve this via placement new. Some people think they can say new(this) Foo(x, int(x)+7) within the body of Foo::Foo(char). However that is bad, bad, bad. Please don't write me and tell me that it seems to work on your particular version of your particular compiler; it's bad. Constructors do a bunch of little magical things behind the scenes, but that bad technique steps on those partially constructed bits. Just say no."

GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz9-Mar-05 14:45
TheGreatAndPowerfulOz9-Mar-05 14:45 
AnswerRe: How to call a constructor in another constructor Pin
Ravi Bhavnani8-Mar-05 9:50
professionalRavi Bhavnani8-Mar-05 9:50 
QuestionHow to end process tree? Pin
lechoo8-Mar-05 3:56
lechoo8-Mar-05 3:56 
GeneralRegistry Hacking Pin
shahzad Ahmed8-Mar-05 3:36
shahzad Ahmed8-Mar-05 3:36 
GeneralRegistry Hacking Pin
shahzad Ahmed8-Mar-05 3:33
shahzad Ahmed8-Mar-05 3:33 
GeneralRe: Registry Hacking Pin
David Crow8-Mar-05 4:07
David Crow8-Mar-05 4:07 
QuestionWhy display icon in ListCtrl with a black shadow ?? Pin
lillah8-Mar-05 3:00
lillah8-Mar-05 3:00 
GeneralDLL Extension MFC Pin
sunit58-Mar-05 2:26
sunit58-Mar-05 2:26 
GeneralRe: DLL Extension MFC Pin
ThatsAlok8-Mar-05 2:58
ThatsAlok8-Mar-05 2:58 
GeneralRe: DLL Extension MFC Pin
sunit58-Mar-05 20:23
sunit58-Mar-05 20:23 
GeneralAllocating struct with malloc, shows as undefined in Visual C++ debugger Pin
Dave J Smith8-Mar-05 1:18
Dave J Smith8-Mar-05 1:18 
GeneralRe: Allocating struct with malloc, shows as undefined in Visual C++ debugger Pin
CP Visitor8-Mar-05 5:45
CP Visitor8-Mar-05 5:45 
Generalremove() files but not into recycle bin Pin
User 17288848-Mar-05 0:35
User 17288848-Mar-05 0:35 
GeneralRe: remove() files but not into recycle bin Pin
ThatsAlok8-Mar-05 2:13
ThatsAlok8-Mar-05 2:13 
GeneralRe: remove() files but not into recycle bin Pin
TheGreatAndPowerfulOz8-Mar-05 3:38
TheGreatAndPowerfulOz8-Mar-05 3:38 
GeneralRe: remove() files but not into recycle bin Pin
Mike Dimmick8-Mar-05 8:04
Mike Dimmick8-Mar-05 8:04 
GeneralProcess is signaled on start up if another instance is running Pin
lulacapixaba8-Mar-05 0:17
lulacapixaba8-Mar-05 0: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.