Re: CreateInstance
"George" <George@discussions.microsoft.com> wrote in message
news:4E4CEB9D-AC63-4160-B9B4-204EC0247DA4@microsoft.com
Conversion from CA to IUnknown is
ambiguous, because there are two subobjects of type IUnknown inside
an instance of CA. What exactly is inside IUnknown is irrelevant. It
could be empty, for all the compiler cares.
Great reply! I have taken time to read elegant C++ book and some
online resources just now. The root cause for me which makes me
confused is I think the differences between the sub-objects only
differs in data members. Since IKnown, IX and IY are all classes
which does not have data member, so I think there should not be any
differences.
You mentioned "It could be empty, for all the compiler cares." which
is really great! I think it matter is whether there is replicated
base class, not whether the data member is empty, right?
I have no idea whatsoever what you are talking about, sorry.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925