C ++为字节code编译器Silverlight的CLR?

编程入门 行业动态 更新时间:2024-10-26 20:35:36
本文介绍了C ++为字节code编译器Silverlight的CLR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想能够编译C / C ++库,使其在Silverlight的CLR安全管理运行中运行。

I'd like to be able to compile a C/C++ library so that it runs within a safe managed runtime in the Silverlight CLR.

有几个工具的与允许JVM这样做C ++ code到CRT模拟层中运行(请参见 NestedVM ,的 LLJVM 等),从而有效地使C ++ code到Java小程序中运行。甚至还有这样的工具用于Adobe Flash VM(请参见炼金术)。

There are several tools for doing this with the JVM that allows C++ code to run within a CRT emulation layer (see NestedVM, LLJVM, etc), which effectively allows C++ code to be run within a Java Applet. There's even a tool for this for the Adobe Flash VM (see Alchemy).

不过,我似乎无法找到这样任何工具为CLR。仅供参考,MSVC的工具似乎并没有考虑到这一点:在 / CLR:纯标志将创建一个在CLR运行C ++ code,但它不是' ŧ安全(因为CRT是不是安全)和 / CLR:安全需要大量的code的变化(没有原生类型等)

However, I can't seem to find any tools like this for the CLR. fyi, the MSVC tools don't seem to allow for this: The /clr:pure flag will create C++ code that runs in the CLR, but it isn't safe (because the CRT isn't safe) and /clr:safe requires massive code changes (no native types, etc).

推荐答案

那么我认为你是纯运气了。如果你的code不能使用/ CLR:那么安全标志,它不会是编译成的东西,可以在Silverlight运行。如果C ++是做什么的CLR不允许或支持,那么有没有办法解决这个直接。

Then I think you are plain out of luck. If your code can't use the /clr:safe flag then it won't be compilable into something that can run in Silverlight. If the C++ is doing something that the CLR does not allow or support, then there is no way around this directly.

根据您的code做了什么,你可能运行在服务器上,并调用从Silverlight的通过Web服务?

Depending what your code does, you could possibly execute it on the server and call that from Silverlight via a web service?

更多推荐

C ++为字节code编译器Silverlight的CLR?

本文发布于:2023-11-10 06:39:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   字节   CLR   code   Silverlight

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!