[python-win32] Trouble Automating Alibre CAD package
Duane Kaufman
duaneklean at tds.net
Thu Jul 13 22:06:48 CEST 2006
Hi,
>
> Thomas wrote:
> > I'm not sure pywin32 can handle such a buggy object,
> > but you could probably try to run makepy on the typelib and then
> > create the object.
>
> What might work here is to pass a secret second arg to QueryInterface. This
> second arg can be the IID of the object returned from the call. So
> something like:
>
> ob = ob.QueryInterface(IID_IAutomationHook, pythoncom.IID_IDispatch)
>
I will admit to being a newbie to Python COM, but what is 'ob', and how do I create it?
Thanks,
Duane
> should theretically perform the QI for IAutomationHook, but return the
> resulting object in a PyIDispatch wrapper.
>
> What happens after that is anyone's guess though ;)
>
> Mark
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
More information about the Python-win32
mailing list