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...

-----Original Message-----
From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@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 (2.0.0.0) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
 >>> import System
 >>> System.Type.GetTypeFromProgID("DSXXXX.XXXXChannel")
<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.

Thank's
Glauco

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to