COM/CORBA/DCOP (was: Hello people. I have some questions)

Alex Martelli aleax at aleax.it
Tue Sep 11 06:11:17 EDT 2001


"Neil Hodgson" <nhodgson at bigpond.net.au> wrote in message
news:6bcn7.35171$bY5.182509 at news-server.bigpond.net.au...
    ...
> > >    So you are prepared to not follow the letter of the specification
for
> > >    the
> > > dispatch identifier? (Of course I can argue both sides :-) )
> >
> > Absolutely not!  Where are you reading this?!
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm
> _hh2/chap5_61id.asp
>
> """dispIdMember
> Identifies the member. Use GetIDsOfNames or the object's documentation to
> obtain the dispatch identifier. """

Yes, and the object's documentation (if the object claims to support
COM and Automation) includes by reference the documentation of the
COM and Automation standards.  Therefore, by (e.g.) using DISPID_VALUE
directly as the (attempted) dispatch identifier, I'm following this --
and I have full right to expect an appropriate HRESULT from Invoke,
rather than a crash or any other form of exception, if the object
has no default-property and thus doesn't have any meaningful
implementation of DISPID_VALUE.


Alex






More information about the Python-list mailing list