在C#COM包装使用本机DLL并在Silverlight中使用DLL [英] Using Native dlls in C# Com wrapper and Use dll in silverlight

查看:171
本文介绍了在C#COM包装使用本机DLL并在Silverlight中使用DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的项目的一部分,我需要在Silverlight中使用一些Unamanged代码的DLL。如果我换一个C#DLL这些托管DLL将我能够从Silverlight的访问本机DLL。我使用Visual Studio 2010和Silverlight 4.0

As part of my project I need to use some Unamanged code dlls in Silverlight. If I wrap these unmanaged dlls in a C# dll will I be able to access the native dlls from silverlight. I use Visual Studio 2010 and Silverlight 4.0

推荐答案

通过Silverlight 4中,你可以打电话到安装在本地计算机上的COM对象。然而,要做到这一点,用户必须选择允许Silverlight应用程序完全访问他们的机器。

With Silverlight 4, you can call out to COM objects installed on the local machine. However to do this the user has to choose to allow the Silverlight App full access to their machine.

在除了需要已经在计算机上安装的COM对象。因此,用户首先必须单独下载并使用在您的Silverlight应用程序对他们所依据的任何功能之前安装的DLL。

In addition the COM object needs to already be installed on the machine. Therefore the user would first have to separately download and install your DLLs before using any features that relied on them in your Silverlight application.

这篇关于在C#COM包装使用本机DLL并在Silverlight中使用DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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