[python-win32] Makepy does not generate all secondary interfaces?
Tim Roberts
timr at probo.com
Tue Nov 9 21:50:58 CET 2010
Åsmund Hjulstad wrote:
> 2010/11/9 Tim Roberts <timr at probo.com>:
>> Åsmund Hjulstad wrote:
>>> ...
>>> My latest attempt is
>>>
>>> pisdkcommonlib = ('{76A44786-EBC8-11D3-BDC5-00C04F779EB2}', 0, 1, 0)
>>> win32com.client.makepy.GenerateChildFromTypeLibSpec("IPIAsynchStatus2",
>>> pisdkcommonlib, 1)
That's not the correct usage. Did you see an example of this somewhere?
What happens if you do xxx.QueryInterface and specify the GUID of the
interface you want?
> but I don't understand how the original object declares that it can
> implement the interface. I'm probably in way over my head. Thank you
> for helping.
That's done at run-time. In C++ terms, you call the QueryInterface
method, passing it the GUID of the interface you want. If the object
supports that interface, it returns a pointer. Otherwise, it returns an
error.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list