Re: ActiveX Aggregation

thetitchman_at_gmail.com
Date: 12/30/04


Date: 30 Dec 2004 11:53:56 -0800

The code I wrote above was a stripped down version of the commap sample
that comes with Visual Studio. I rewrote the code from scratch using
just ATL and I now have a working blind aggregation app - so not sure
what was wrong with the other project...

So, my inner object A inherits from IDispatch, and my new outer object
B inherits from IDispatch aswell. So if I add any properties to B, I
can't seem to access them from Javascript. I'm assuming that this is
because script only understands IDispatch and all queries for IDispatch
go straight to A as I'm using blind aggregation - is this correct?

But, my main reason for doing aggregation is so that I can catch some
exceptions that are being thrown in the inner object A. So if I use
blind aggregation (COM_INTERFACE_ENTRY_AGGREGATE_BLIND), I'm not sure I
can do this - correct? Would I be better off using
containment/delegation, and implementing every interface in B and
forwarding all requests to A? Is this my only option if I want to catch
the exceptions in B?

Thanks again for all your help,
Michael.



Relevant Pages

  • Re: ActiveX Aggregation
    ... > So, my inner object A inherits from IDispatch, and my new outer object ... > B inherits from IDispatch aswell. ... COM_INTERFACE_ENTRY(IDispatch) into the interface map above ...
    (microsoft.public.win32.programmer.ole)
  • Re: ActiveX Aggregation
    ... > So, my inner object A inherits from IDispatch, and my new outer object ... > B inherits from IDispatch aswell. ... COM_INTERFACE_ENTRY(IDispatch) into the interface map above ...
    (microsoft.public.vc.atl)