[Mono-list] Interop

John Lenz lenz@cs.wisc.edu
Tue, 14 Dec 2004 01:59:28 +0000


On 12/13/04 03:35:03, Javier Miguel Gonzalez wrote:
> Hello,
> 
> I want to call a .Net function (in a class) from unmanaged code, like VC+ 
> +
> 6
> or Delphi 7.
> 
> Do you know if it is possible?
> 
> Are there something like JNI in .Net?
> 
> I have read this articles:
> 
> http://www.blong.com/Conferences/BorCon2004/Interop1/Win32AndDotNetInterop.h
> tm#InversePInvoke
> 
> http://www.codeproject.com/csharp/Win32_to_NET.asp
> 
> ...but I feel that this methods are not so much standard.
> 
> Are in Mono something better to do it than in MS .Net Framework?

You could also check out SWIG at http://www.swig.org, which has C# support  
and works with the Microsoft runtime, mono, and Portable.NET.  There are a  
lot of examples on wrapping code provided by SWIG as well.

John