Click here to Skip to main content
16,003,555 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get address of an instance Pin
CSharpDavid25-Jul-02 13:20
CSharpDavid25-Jul-02 13:20 
AnswerRe: How to get address of an instance Pin
Christian Graus25-Jul-02 13:45
protectorChristian Graus25-Jul-02 13:45 
GeneralRe: How to get address of an instance Pin
soptest25-Jul-02 14:22
soptest25-Jul-02 14:22 
GeneralRe: How to get address of an instance Pin
Christian Graus25-Jul-02 14:31
protectorChristian Graus25-Jul-02 14:31 
GeneralRe: How to get address of an instance Pin
Daniel Lohmann25-Jul-02 14:39
Daniel Lohmann25-Jul-02 14:39 
GeneralRe: How to get address of an instance Pin
Christian Graus25-Jul-02 14:52
protectorChristian Graus25-Jul-02 14:52 
GeneralRe: How to get address of an instance Pin
Mukkie26-Jul-02 5:32
Mukkie26-Jul-02 5:32 
I had the similar problem some time ago. I need to call a virtual function from within base class constructor, which is of course impossible (cause the derriven class is not yet constructed).
You can write define or template function. Pass the type as the argument. After construction (operator new for instance), call required virtual member, then return newly created instance of the object.

This works fine for me.


Mukkie
AnswerRe: How to get address of an instance Pin
includeh1026-Jul-02 1:04
includeh1026-Jul-02 1:04 
AnswerRe: How to get address of an instance Pin
Anonymous26-Jul-02 10:22
Anonymous26-Jul-02 10:22 
QuestionHow to declare a SomeType &var in the header file? Pin
nss25-Jul-02 13:03
nss25-Jul-02 13:03 
AnswerRe: How to declare a SomeType &var in the header file? Pin
Christian Graus25-Jul-02 13:41
protectorChristian Graus25-Jul-02 13:41 
GeneralRe: How to declare a SomeType &var in the header file? Pin
nss25-Jul-02 15:30
nss25-Jul-02 15:30 
GeneralRe: How to declare a SomeType &var in the header file? Pin
Christian Graus25-Jul-02 15:47
protectorChristian Graus25-Jul-02 15:47 
AnswerRe: How to declare a SomeType &var in the header file? Pin
pépé26-Jul-02 2:52
pépé26-Jul-02 2:52 
GeneralRe: How to declare a SomeType &var in the header file? Pin
ns26-Jul-02 3:43
ns26-Jul-02 3:43 
QuestionHow to get server side system time? Pin
Tida25-Jul-02 11:07
Tida25-Jul-02 11:07 
AnswerRe: How to get server side system time? Pin
jmkhael25-Jul-02 11:58
jmkhael25-Jul-02 11:58 
AnswerRe: How to get server side system time? Pin
Joaquín M López Muñoz25-Jul-02 12:03
Joaquín M López Muñoz25-Jul-02 12:03 
AnswerRe: How to get server side system time? Pin
Carlos Antollini25-Jul-02 12:17
Carlos Antollini25-Jul-02 12:17 
QuestionCan I call OnItemChanged by force? Pin
nss25-Jul-02 10:47
nss25-Jul-02 10:47 
AnswerLVN_ITEMCHANGED, but whats the way to send this message? Pin
nss25-Jul-02 11:20
nss25-Jul-02 11:20 
AnswerRe: Can I call OnItemChanged by force? Pin
Shog925-Jul-02 11:57
sitebuilderShog925-Jul-02 11:57 
GeneralOverriding Context Help button Pin
esapp42025-Jul-02 10:30
esapp42025-Jul-02 10:30 
Generalprintpreview Pin
Anthony988725-Jul-02 8:44
Anthony988725-Jul-02 8:44 

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.