[Mono-dev] Create C# objects from C++
d3ck0r at gmail.com
Thu Mar 16 01:22:07 UTC 2017
with C++ you can use managed extensions and compile with /CLR /CLI?
But I don't know that that applies for mono.....
And apparently it doesn't
On Wed, Mar 15, 2017 at 1:56 PM, howard.rubin <
howard.rubin at hl.konicaminolta.us> wrote:
> Some of the APIs I'm calling from C++ take C# objects, like
> System.Drawing.PointF and System.IO.UnmanagedMemoryStream . I can create
> them like below but I'd like to eliminate the hard coded paths to the .NET
> Is it possible to reference the already loaded assembly or find the path to
> the on-disk assembly or create the objects differently? How can I do that?
> MonoAssembly* DrawingAssembly = mono_domain_assembly_open(domono.domain,
> MonoImage* DrawingImage = mono_assembly_get_image(DrawingAssembly);
> MonoClass* ptFClass = mono_class_from_name(DrawingImage, "System.Drawing",
> MonoAssembly* MscorlibAssembly = mono_domain_assembly_open(domono.domain,
> MonoImage* MscorlibImage = mono_assembly_get_image(MscorlibAssembly);
> MonoClass* umsClass = mono_class_from_name(MscorlibImage, "System.IO",
> View this message in context: http://mono.1490590.n4.nabble.
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list