动态代码执行上的WinRT在Windows 8(或C ++或.NET / C#)? [英] Dynamic code execution on WinRT in Windows 8 (either C++ or .NET/C#)?

查看:154
本文介绍了动态代码执行上的WinRT在Windows 8(或C ++或.NET / C#)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

windows下是否WinRT中有8个地铁允许你动态地加载和执行代码?例如,是否可以下载一个DLL到内存中,或从中独立存储和运行​​代码?莫非代码编译JIT脚本语言母语汇编语言(例如第三方浏览器),能够做到在WinRT中一样,或者是禁止为不安全的操作?

Does WinRT under windows 8 metro allow you to dynamically load and execute code? For example, is it possible to download a dll into memory or to isolated storage and run code from it? Could code that JIT compiles a scripting language to native assembly language (e.g. third party browsers) be able to do the same in WinRT, or is it prohibited as an "unsafe" operation?

是这个问题的答案在WinRT中运行管理的代码有什么不同?例如,在托管代码中,你可以从互联网上下载一个程序集,有它在MEF发现或以其他方式能够在运行时加载它?你能以某种形式使用Reflection.Emit的?在C ++中,你能不能用你的应用程序运行在运行时生成的汇编代码,或者动态加载在运行时DLL(大概是某种形式的WinRT的DLL)?

Is the answer to this question different for "managed" code running in WinRT? For example, in managed code, could you download an assembly from the internet and have it be discoverable in MEF or otherwise be able to load it at runtime? Can you use Reflection.Emit in some form? In C++, can you run assembly code generated at runtime by your application, or dynamically load a DLL at runtime (presumably some form of WinRT DLL)?

推荐答案

您的问题是有点不清楚......所以有一般指示:

You question is a bit unclear... so some general pointers:


  • .NET应用程序中使用其他的东西的WinRT(但不包括新的用户界面模式!)

    在这种情况下,一切皆有可能,你今天(也许不是OLEDB),但反思等。

  • .NET app using among other things WinRT (but NOT the new UI model!)
    In this case everything is possible that you today (perhaps not OLEDB) but Reflection etc.

.NET应用程序专为Metro UI的

AFAIK这是不可能的(见的 http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/17 /metro-net-framework-profile-windows-tailored.aspx http://tirania.org/blog / )至少只要你想通过Windows商店卖...这个范围(Windows应用商店)之外可能有一些技巧来规避这种限制已经为一些证明...但我不会指望这...也许你可以使用一些JavaScript(评估等)做一些动态的,但我不知道目前

.NET app built for Metro UI
AFAIK this is not possible (see http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/17/metro-net-framework-profile-windows-tailored.aspx and http://tirania.org/blog/) at least as long as you want to sell via Windows Store... outside of this scope (Windows Store) there might some tricks to circumvent that restriction as already demonstrated by some... but I wouldn't count on that... MAYBE you can use some JavaScript (eval etc.) to do something dynamic but I am not sure currently

这篇关于动态代码执行上的WinRT在Windows 8(或C ++或.NET / C#)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆