[Mono-list] RE: Interop
Javier Miguel Gonzalez
Mon, 13 Dec 2004 15:54:57 +0100
> On Mon, 2004-12-13 at 10:35 +0100, Javier Miguel Gonzalez wrote:
> > 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?
> Maybe. It depends on what syntax/functionality you want to enable.
I have to deliver some libraries (DLL's written in Delphi 7) for use in
unmanaged environments, and I am planning to migrate them to C# with mono
and let them run in linux/unix too.
> > Are in Mono something better to do it than in MS .Net Framework?
> Define "better". If you want portability between Mono and .NET,
> delegates are the only portable approach.
> If you don't mind being tied to Mono, then you could use the embedding
> API, which permits unmanaged code to add additional internal calls,
> create new managed objects, and invoke them.
> See: http://www.go-mono.com/embedded-api.html
Do you know were can I find samples of use?
In the last section of document says 'See the sample programs in
mono/sample/embed for examples of embedding the Mono runtime in your
application.'. Where are mono/sample/embed??
Thanks for your help