[Mono-list] Call managed from unmanaged code?

rarthi sishya at gmail.com
Thu Feb 10 14:00:05 EST 2011


Hi Jonathan,
Can you explain on this point a little more ? 

3. Mono does have some support for COM Interop, but note that there is
minimal to no tool support for generating the wrapper interfaces and interop
libraries. 


http://www.mono-project.com/COM_Interop

>From some of your other posts, I understand that you added support for both
RCWs and CCWs in ComInterop for Mono. So, Im confused by your comment that
it has minimal to no tool support for generating the wrapper interfaces ? 

regards,
arthi.


Jonathan Chambers wrote:
> 
> Hello Kurt,
>      You can achieve this in a few ways.
> 
> 1. The easiest and most portable is to marshal a delegate into a function
> pointer, and then pass that pointer into native code to call back onto.
> 
> 2. If you are using the embedding API, you can register internal calls
> with
> the runtime that you can call from C#.
> 
> http://www.mono-project.com/Embedding_Mono#Exposing_C_code_to_the_CIL_universe
> 
> <http://www.mono-project.com/Embedding_Mono#Exposing_C_code_to_the_CIL_universe>3.
> Mono does have some support for COM Interop, but note that there is
> minimal
> to no tool support for generating the wrapper interfaces and interop
> libraries.
> 
> http://www.mono-project.com/COM_Interop
> 
> <http://www.mono-project.com/COM_Interop>Thanks,
> Jonathan
> 
> On Wed, Aug 18, 2010 at 9:27 PM, <Krogerma at aol.com> wrote:
> 
>>  Hello, List:
>>
>> Is it possible to call into a managed DLL from an unmanaged C/C++
>> application with the facilities within Mono? We would like to do this on
>> the
>> Mac at the moment, but we would need to do it from Suse Linux also.
>>
>> We are currently calling unmanaged DLL's from managed ones in our project
>> and someone asked me whether we could call managed from unmanaged. Does
>> Mono
>> support something like COM-to-Net wrappers? I couldn't find a good
>> reference
>> for this in the archives.
>>
>> Regards;
>>
>> Kurt Matis
>> troy, NY.
>>
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Call-managed-from-unmanaged-code-tp2330549p3299993.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list