[Mono-list] Will COM be supported?

Adam Treat manyoso@yahoo.com
Mon, 6 Jan 2003 10:15:25 -0800 (PST)


Just create a delegate in managed C# code and then pass that delegate via PInvoke to a C function.
 The C function will view the delegate as a function pointer.  The C function can invoke the
function pointer which will call the delegates invocation list and the appropriate managed methods
will be called.

Cheers,
Adam
--- Urs Muff <umuff@quark.com> wrote:
> Show me how you would right a C function that calls a method of a .Net
> object.  First of all, try to get a reference of a .Net object.
> 
> - URS C. MUFF
> SYSTEMS ARCHITECT   	- RESEARCH LAB
> 
> > -----Original Message-----
> > From: Jeroen Janssen [mailto:japj@xs4all.nl]
> > Sent: Monday, January 06, 2003 9:43 AM
> > To: mono-list
> > Subject: Re: [Mono-list] Will COM be supported?
> > 
> > Urs Muff wrote:
> > 
> > >COM is one of the only ways right now to call back into managed code from
> > >legacy/unmanaged code.  Will there be another way on mono to interoperate
> > >with legacy code, or is COM supported?
> > >
> > >
> > 
> > Oh, what about delegates? Isn't it also possible to use delegates to
> > callback into managed code?
> > ---
> > Jeroen Janssen
> > 
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com