[Mono-list] Linux Question

Jonathan Pryor jonpryor@vt.edu
17 Jun 2003 18:25:46 -0400


COM-Interop-like?  No.  Mono-Interop-Like?  Yes.

>From C#, you can use traditional DllImport-style importing and
invocation of C functions.

>From C/C++, you can use the Mono Embedding API, which allows C/C++ code
to interact with CIL code (create classes, invoke methods, etc.).  It
can also be used to add new internal calls, providing an easier way for
C# apps to invoke C/C++ functions than DllImport.

There is an example in the mono CVS module "samples/embed" directory.

The one downside to this is that the Mono embedding API isn't portable
to .NET, but this doesn't sound like a particular problem for your case.

 - Jon

On Tue, 2003-06-17 at 16:43, Greg Shaffer wrote:
> I have a C/C++ OSF Motif Linux application and I also have a C# application.
> Is it possible for the two to communicate in a COM-Interop-like relationship
> in the Linux environment?  I would like to embed parts of the C# application
> in the Linux application.  Is this possible or will it ever be possible?
> 
> Thanks,
> Greg Shaffer
> Software Developer
> Micro Analysis & Design
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list