Accessing secondary COM interface with win32com

D. Ellis dellis_moreinc at yahoo.com
Thu Mar 16 11:23:47 EST 2000


Mark,

Thanks for your response.  This is exactly what I needed to know.
It works just as I hoped it would.  It even seems (almost) obvious
now that I've seen it...

Thanks again,
David.


Mark Hammond <mhammond at skippinet.com.au> wrote in message
news:<qFTz4.573$Gi.1646 at news-server.bigpond.net.au>...
> Im not sure what you are asking.
>
> If you need to use custom COM interfaces defined by your app, then you
> are out of luck.  You will need to get down at the C level (although
> we have tools that will help generate the code).
>
> If you simply want to use a different IDispatch interface from an
> object - you should be able to do something like:
>
> old_interface = win32com.client.Dispatch(Your.App")
> module = gencache.GetModuleForProgID("Your.App")
> new_interface = module.NewInterfaceName(old_interface)
>
> Mark.
>
> "D. Ellis" <dellis_moreinc at yahoo.com> wrote in message
news:8aonqf$8o7$1 at sloth.swcp.com...
> > (snipped)





More information about the Python-list mailing list