Click here to Skip to main content
16,018,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why they are no Virtual Constructors. Pin
toxcct23-Feb-07 3:04
toxcct23-Feb-07 3:04 
AnswerRe: Why they are no Virtual Constructors. Pin
David Crow23-Feb-07 3:05
David Crow23-Feb-07 3:05 
GeneralRe: Why they are no Virtual Constructors. Pin
uday kiran janaswamy23-Feb-07 3:10
uday kiran janaswamy23-Feb-07 3:10 
GeneralRe: Why they are no Virtual Constructors. Pin
led mike23-Feb-07 4:28
led mike23-Feb-07 4:28 
GeneralRe: Why they are no Virtual Constructors. Pin
Mark Salsbery23-Feb-07 8:37
Mark Salsbery23-Feb-07 8:37 
GeneralRe: Why they are no Virtual Constructors. Pin
Maximilien23-Feb-07 8:44
Maximilien23-Feb-07 8:44 
AnswerRe: Why they are no Virtual Constructors. Pin
cmk23-Feb-07 12:38
cmk23-Feb-07 12:38 
GeneralRe: Why they are no Virtual Constructors. Pin
Bram van Kampen24-Feb-07 15:02
Bram van Kampen24-Feb-07 15:02 
In Other words, When the First Step of construction takes place, we are constructing the Root Class, which has the V-Table of the Root Class.(No Idea yet of Your Classes' V-Table) If the language allowed you to declare a Virtual constructor, it would be in the V-Table of your final class, and only be available AFTER your class was constructed. Now that would be realy like mustard after the meal. Ofcourse someone could write a compiler which takes account of these things. The language it compiles would no longer be cpp though.

The long and short of it is therefore, If you need a Virtual Constructor, you are organising your code wrong. Blush | :O Look at your code and try again.

regards

LateNightsInNewry

GeneralRe: Why they are no Virtual Constructors. Pin
Rajesh R Subramanian25-Feb-07 21:46
professionalRajesh R Subramanian25-Feb-07 21:46 
QuestionA question about OpenGL picking Pin
jk chan23-Feb-07 2:21
jk chan23-Feb-07 2:21 
AnswerRe: A question about OpenGL picking Pin
El Corazon24-Feb-07 15:23
El Corazon24-Feb-07 15:23 
Questionpass by reference error Pin
minkowski23-Feb-07 1:57
minkowski23-Feb-07 1:57 
AnswerRe: pass by reference error Pin
Cedric Moonen23-Feb-07 2:08
Cedric Moonen23-Feb-07 2:08 
AnswerRe: pass by reference error Pin
Bram van Kampen24-Feb-07 15:12
Bram van Kampen24-Feb-07 15:12 
QuestionAbout CLSID??? Pin
siddharthsan23-Feb-07 1:49
siddharthsan23-Feb-07 1:49 
QuestionRe: About CLSID??? Pin
prasad_som23-Feb-07 6:01
prasad_som23-Feb-07 6:01 
QuestionGlobal hook Pin
tigger_am23-Feb-07 1:47
tigger_am23-Feb-07 1:47 
AnswerRe: Global hook Pin
PJ Arends23-Feb-07 10:05
professionalPJ Arends23-Feb-07 10:05 
Questionabout linking obj files Pin
sawerr23-Feb-07 0:52
sawerr23-Feb-07 0:52 
AnswerRe: about linking obj files Pin
toxcct23-Feb-07 0:56
toxcct23-Feb-07 0:56 
AnswerRe: about linking obj files Pin
Cedric Moonen23-Feb-07 0:57
Cedric Moonen23-Feb-07 0:57 
AnswerRe: about linking obj files Pin
Newbie0023-Feb-07 1:09
Newbie0023-Feb-07 1:09 
QuestionCReBar border question. Pin
PatrykDabrowski23-Feb-07 0:28
PatrykDabrowski23-Feb-07 0:28 
QuestionTrying to pass an array Pin
ericelysia22-Feb-07 23:57
ericelysia22-Feb-07 23:57 
AnswerRe: Trying to pass an array Pin
Cedric Moonen23-Feb-07 0:47
Cedric Moonen23-Feb-07 0:47 

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.