Click here to Skip to main content
16,011,570 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to resolve soch problem about xor? Pin
Steve Echols23-Mar-08 17:24
Steve Echols23-Mar-08 17:24 
GeneralRe: how to resolve soch problem about xor? Pin
kcynic23-Mar-08 17:27
kcynic23-Mar-08 17:27 
GeneralRe: how to resolve soch problem about xor? Pin
Steve Echols23-Mar-08 17:38
Steve Echols23-Mar-08 17:38 
GeneralRe: how to resolve soch problem about xor? Pin
kcynic23-Mar-08 17:46
kcynic23-Mar-08 17:46 
GeneralVirtual base class constructor Pin
George_George23-Mar-08 3:33
George_George23-Mar-08 3:33 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 4:31
mveCPallini23-Mar-08 4:31 
GeneralRe: Virtual base class constructor Pin
George_George23-Mar-08 4:37
George_George23-Mar-08 4:37 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 5:25
mveCPallini23-Mar-08 5:25 
Well I think we can understand the quoted paragraph keeping in mind the memory layout drawings of the OP article. Probably whenever the memory layout is optimizied to retain only a copy of the base class stuff, you need that offset field to keep aligned, in derived classes, info about the base one (roughly speaking, the compiler says:"OK you ask to me two identical copies of the base stuff, I'll make only a single one and all will go fine if I provide you an additional field, i.e. the offset to adjust derived class pointers alignement to such single copy").
BTW it's only a guess, actually I'm not a guru and this time the matter is a bit intricate.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: Virtual base class constructor Pin
George_George23-Mar-08 19:34
George_George23-Mar-08 19:34 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 22:25
mveCPallini23-Mar-08 22:25 
GeneralRe: Virtual base class constructor Pin
George_George23-Mar-08 22:53
George_George23-Mar-08 22:53 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 23:45
mveCPallini23-Mar-08 23:45 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 0:11
George_George24-Mar-08 0:11 
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 0:29
mveCPallini24-Mar-08 0:29 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 3:01
George_George24-Mar-08 3:01 
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 6:11
mveCPallini24-Mar-08 6:11 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 21:26
George_George24-Mar-08 21:26 
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 23:36
mveCPallini24-Mar-08 23:36 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 3:00
George_George25-Mar-08 3:00 
GeneralRe: Virtual base class constructor Pin
CPallini25-Mar-08 5:08
mveCPallini25-Mar-08 5:08 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 20:36
George_George25-Mar-08 20:36 
GeneralRe: Virtual base class constructor Pin
CPallini25-Mar-08 22:45
mveCPallini25-Mar-08 22:45 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 23:30
George_George25-Mar-08 23:30 
Generalcode for active x controls in vc++ Pin
kumartnvr23-Mar-08 2:54
kumartnvr23-Mar-08 2:54 
GeneralRe: code for active x controls in vc++ Pin
CPallini23-Mar-08 4:20
mveCPallini23-Mar-08 4:20 

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.