Åsmund Hjulstad wrote:
> 2010/11/9 Tim Roberts <t...@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, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to