[IronPython] Calling COM method returns generic System.__ComObject?
yngipy hernan
yngipy at gmail.com
Thu Aug 12 04:20:31 CEST 2010
Hi All,
I have been playing around IronPython + COM + OPC (COM not the .Net).
One of the calls in OPC is (pseudocode):
item = opc_items_object.AddItem('OPC path here',
opc_grp_object.ClientHandle)
The issue is that item is returned as System.__ComObject. All methods that
are available for OPCItem interface are gone???
I have search the internet and it seems like opc_items_object should have a
coclass for IronPython to figure out how to return object properly.
Unfortunately this is not the case, based on the IDL OPCItems don't have a
coclass definition.
Is there a work-around for this?
I have also come across a possible work-around by using unbound class
instance, i.e., outParamAsReturnValue =
InteropAssemblyNamespace.IComInterface(comObject).
But I can't figure out how to use it.
I would really appreciate anyone can point me out to the right direction.
Regards,
Yngipy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100811/617f3969/attachment.html>
More information about the Ironpython-users
mailing list