Python COM troubles

William Wicker remove.me.wwicker at spectratechnologies.com
Fri Apr 28 13:53:53 EDT 2000


On Thu, 27 Apr 2000 00:46:35 GMT, "Mark Hammond"
<mhammond at skippinet.com.au> wrote:

>"William Wicker" <remove.me.wwicker at spectratechnologies.com> wrote in
>message news:390a2f04.149999918 at news.onlineisp.com...
>
>> Is there a way around this appearance of typelessness? There is a type
>> library, and I've run make-py successfully. I just can't see an easy
>> way into it.
>
>You can try running "makepy.py -i", and select your type library.  This
>will spit out some code, something like:
>
>gencache.EnsureModule(...)
>
>change this to:
>
>mod = gencache.EnsureModule(...)
>
>And you should be able to create any of the class objects in the makepy
>module - eg:
>
>ob = mod.TheClassName()
>
>If you search deja news, there should be lots of info about this - but
>generally relating to "Lotus Notes", which also has the same problem.
>
>[BTW - drop them a line, and tell them they should fix their objects :-]
>

Can you fill me in with what in particular I should complain about?
Comments that RTTI was lacking brought the response that
QueryInterface was supported.

Also, (did I already ask this?) I'm guessing that using the
EnsureModule approach will make DispatchWithEvents unavailable.
Reading dynamic.py suggests that there is an alternate (more complex?)
way.

(I hate knowing what I want to do, but not how to do it.)

	William.




More information about the Python-list mailing list