Re: Can't add property getter for write-only property in derived interface
<andrew.molyneux@gmail.com> wrote in message
news:1182773849.059045.232400@p77g2000hsh.googlegroups.com
You would also need a custom IDispatch implementation that would
support the functionality of both interfaces.
Sorry, I should have been clearer about this - I meant IMyInterface2
would have a copy of everything in IMyInterface, so the IDispatch
would only need to support IMyInterface2's functionality (a superset
of IMyInterface). Call it "copy and paste inheritance" :-)
In this case, make sure IDispatch portion of IMyInterface actually
delegates to that of IMyInterface2. Otherwise you will be in a bad
situation where, say, IDispatch::Invoke behaves differently depending on
the way IDispatch pointer was obtained.
--
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