简体   繁体   English

将MS.NET C#嵌入到c / c ++中(如单声道)

[英]Embedding MS.NET C# into c/c++ (like mono)

Is it possible to embed the MS C# compiler into an umanaged c/c++ host application and make both languages interoperate, very much like Mono does this (like here and here )? 是否有可能将MS C#编译器嵌入到一个非托管的c / c ++主机应用程序中,并使这两种语言可以互操作,就像Mono这样做(就像这里这里一样 )?
I have a working implementation of this für my Qt based C++ Application using mono, but I'm limited (I really need the memory) by the 32bit constraint of mono on Windows (there are no 64bit releases for windows). 我有一个使用mono的这个基于Qt的C ++应用程序的工作实现,但我受限于(我真的需要内存)Windows上的32位单声道限制(Windows没有64位版本)。 So can this be achived with "the original" C# implementation? 那么这可以通过“原始”C#实现来实现吗?

BTW: I'd like to continue using GNU compilers (mingw-w64). 顺便说一句:我想继续使用GNU编译器(mingw-w64)。

Microsoft does support this; 微软确实支持这个; their term for it is hosting . 他们的任期是托管

If you specifically want to use C# compiler, then Mono's C# compiler is managed, while Microsoft's C# compiler is native. 如果您特别想使用C#编译器,则管理Mono的C#编译器,而Microsoft的C#编译器是本机编译器。 There are some differences you cannot conquer. 你无法克服一些差异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM