Click here to Skip to main content
16,004,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi11-Mar-05 1:23
ajalilqarshi11-Mar-05 1:23 
GeneralList Control Selection Pin
RichardS11-Mar-05 0:38
RichardS11-Mar-05 0:38 
GeneralRe: List Control Selection Pin
ThatsAlok11-Mar-05 2:01
ThatsAlok11-Mar-05 2:01 
GeneralRe: List Control Selection Pin
RichardS11-Mar-05 3:26
RichardS11-Mar-05 3:26 
GeneralRe: List Control Selection Pin
Ravi Bhavnani11-Mar-05 4:30
professionalRavi Bhavnani11-Mar-05 4:30 
GeneralRe: List Control Selection Pin
ThatsAlok11-Mar-05 19:36
ThatsAlok11-Mar-05 19:36 
GeneralC++ HELL : Object Addresses Pin
vikramlinux11-Mar-05 0:18
vikramlinux11-Mar-05 0:18 
GeneralRe: C++ HELL : Object Addresses Pin
RichardS11-Mar-05 1:09
RichardS11-Mar-05 1:09 
Hi vikrams,

In you first example the compiler will create the inheritance as:

base1
  |
base2
  |
Derived


Which means that the compiler only ever needs to know about one int data0 as it comes from base1.

In the second example the tree will be:

base1               base2
  |                   |
  ---------------------
             |
          Derived


Which means now int data0 could come from base1 OR base2 so you it needs to create 2 addresses.

cheers,
Rich



"Programming today is a race between software engineers striving to build bigger and
better idiot-proff programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
GeneralRe: C++ HELL : Object Addresses Pin
vikramlinux11-Mar-05 1:15
vikramlinux11-Mar-05 1:15 
GeneralRe: C++ HELL : Object Addresses Pin
RichardS11-Mar-05 3:34
RichardS11-Mar-05 3:34 
GeneralRe: C++ HELL : Object Addresses Pin
jan larsen11-Mar-05 1:14
jan larsen11-Mar-05 1:14 
GeneralRe: C++ HELL : Object Addresses Pin
vikramlinux11-Mar-05 1:20
vikramlinux11-Mar-05 1:20 
GeneralRe: C++ HELL : Object Addresses Pin
jan larsen13-Mar-05 22:13
jan larsen13-Mar-05 22:13 
GeneralRe: C++ HELL : Object Addresses Pin
vikramlinux13-Mar-05 22:16
vikramlinux13-Mar-05 22:16 
GeneralRe: C++ HELL : Object Addresses Pin
TheGreatAndPowerfulOz11-Mar-05 16:27
TheGreatAndPowerfulOz11-Mar-05 16:27 
GeneralRe: C++ HELL : Object Addresses Pin
jan larsen13-Mar-05 22:16
jan larsen13-Mar-05 22:16 
Generalwindows.h / MessageBox Pin
doneirik11-Mar-05 0:15
doneirik11-Mar-05 0:15 
GeneralRe: windows.h / MessageBox Pin
vikramlinux11-Mar-05 0:53
vikramlinux11-Mar-05 0:53 
GeneralRe: windows.h / MessageBox Pin
Mike Dimmick11-Mar-05 2:21
Mike Dimmick11-Mar-05 2:21 
GeneralProperty headache Pin
Lord Phoenix10-Mar-05 23:06
Lord Phoenix10-Mar-05 23:06 
GeneralRe: Property headache Pin
Mircea Puiu11-Mar-05 4:27
Mircea Puiu11-Mar-05 4:27 
GeneralRe: Property headache Pin
Lord Phoenix11-Mar-05 5:26
Lord Phoenix11-Mar-05 5:26 
GeneralRe: Property headache Pin
includeh1011-Mar-05 4:32
includeh1011-Mar-05 4:32 
GeneralRe: Property headache Pin
Lord Phoenix11-Mar-05 5:27
Lord Phoenix11-Mar-05 5:27 
GeneralMDI Document with data from UDP Pin
schultz.tom10-Mar-05 22:54
schultz.tom10-Mar-05 22:54 

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.