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
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com