[python-win32] Casting to interface from different typelib?
Mark Hammond
skippy.hammond at gmail.com
Mon Jan 12 09:17:09 CET 2009
On 12/01/2009 9:37 AM, Ben Gordon wrote:
> Mark,
>
> MH> oops - try pA._oleobj_.QueryInterface(...)
>
> I just tried that too. Now, the cast "succeeds" as before (according to
> "print pB"), but the method call ["Count()"] still fails in the same way
> as before too.
>
> I appreciate the help, though! Even if we can't work out a fix, do you
> have any idea of what could be going wrong?
Not really :( VB is probably doing everything directly via vtables and
skipping IDispatch completely - so maybe comtypes (based on vtypes) will
have better luck?
Cheers,
Mark
More information about the python-win32
mailing list