[python-win32] Access COM object thru other than default interface

Mark Hammond mhammond at skippinet.com.au
Tue Aug 10 23:53:56 CEST 2004


> It's been a while since I've done exactly this but I think
> what you want
> to do is create an IBBBObject passing the object reference to it as a
> parameter. I think you'll need to be using the makepy'd
> module for this
> but I notice you are creating the object through Dispatch rather than
> the module. Are you not including a makepy'd module?

I has been a while since I was last asked this too :)  Apart from Jens'
suggestion, y9ou can also try an explicit QI for the second interface.  I
believe that also works (via the exact same mechanism that Jens' idea does)

Mark.



More information about the Python-win32 mailing list