[IronPython] py to ip
Shri.Borde at microsoft.com
Wed Feb 4 18:51:56 CET 2009
I don't know much about remote COM (is that the same as DCOM?). IronPython supports invocation on OLEAUT objects. It has only minimal support for creating such objects (via. clr.AddReferenceToTypeLib), and otherwise relies on the user to create the object using the CLR (Type.GetTypeFromProgID) or other means. You can check if any of the Activator.CreateInstance overloads (http://msdn.microsoft.com/en-us/library/system.activator.createinstance.aspx) support remote COM.
Furthermore, I doubt if Mono supports even local COM interop. If you can't do it from C# on Mono, you won't be able to do it from IronPython on Mono either. I think you will need to find COM adapters that allow you to access COM from Linux and use those...
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Glauco Uri
Sent: Wednesday, February 04, 2009 12:49 AM
To: Discussion of IronPython
Subject: Re: [IronPython] py to ip
Shri Borde ha scritto:
> See http://blogs.msdn.com/shrib/archive/2008/07/30/idispatch-support-on-in-ironpython-beta-4.aspx for the details.
Thank you Shri, i've done some try and this still work well:
IronPython 2.0 (184.108.40.206) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
>>> import System
<System.RuntimeType object at 0x000000000000002B [System.__ComObject]>
>>> qq = System.Type.GetTypeFromProgID("DSAXXXX.XXXXChannel")
>>> System.Activator.CreateInstance( qq )
<System.__ComObject (_XXXXChannel) object at 0x000000000000002C>
But now i've some question:
- the "GetTypeFromProgID" method let me use an installed COM objec over
the PC still running this ipy script. This don't use Interop i think
If this is corerct i cannot in any way use remotley this object?
Try to explain my issue:
I'm writing a web application over a linux Server (A).
Some financial data come from "Thomson Datastream" using this COM obj
installed on a Windows Server (B).
My purpose is to call this COM remotely from linux server.
probably i'm doing somethin wrong but from ipy description i've
understood this i possible.
Users mailing list
Users at lists.ironpython.com
More information about the Ironpython-users