client.Create should try IProvideClassInfo2 if IProvideClassInfo fails, as some modules implement the former but not the latter
client.Create should try IProvideClassInfo2
The IProvideClassInfo2 interface derives from IProvideClassInfo. So, it would by very strange if QueryInterface(IProvideClassInfo2) succeeds when QueryInterface(IProvideClassInfo) fails.
Wouldn't an object with this behaviour be VERY SEVERLY broken?
Specifically, all interfaces generated using Pacific Mindworks' Nimbus 2.0 have this behavior. Everything works, except for QueryInterface(IProvideClassInfo). When my company asked their support team, they said "IProvideClassInfo2's better anyway, just use that."
Ok, I'm convinced that you need it.
Is a COM object developed with Nimbus available for download somewhere?
>>> from comtypes import client
<POINTER(IVTEXSystem) ptr=0x13e48f0 at e692b0>
It will say "<POINTER(IUnknown) ptr=0x13e48f0 at e692b0>" instead before making this patch.
I've committed your patch to SVN. The next comtypes release will contain it. Thanks!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.