[Mono-list] C++ interop with Mono

Wolfgang Mauer w.mauer at top-soft.info
Tue Nov 13 17:59:12 UTC 2012


Take a look at
http://www.mono-project.com/Embedding_Mono
this may help...


> Ok, I get the "call unmanaged C++ code from managed C# code" examples.
>
> But I need something that works the other way around. The lifetime sequence
> starts of with a call to an (unmanaged C++) exported dll method
> (GetObjectFactory). I will implement the function in C++ but in that method
> I want to new-up a managed equivalent factory object and return the
> unmanaged representation of that (interface) -as a COM callable wrapper-
> from the exported function.
>
> I thought of making that managed factory object a managed COM object (with
> clsid) and simply call CoCreateInstance on it, but I would rather not do
> that because I don't know how that is supported on Mac and Linux...?
>
> Is there a way to create a managed object in unmanaged code in mono? (so
> without using MS CLI ;-)
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/C-interop-with-Mono-tp4657239p4657357.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



More information about the Mono-list mailing list