开发者

Can Silverlight access a .Net library that accesses a USB port?

开发者 https://www.devze.com 2022-12-19 20:16 出处:网络
We have a .Ne开发者_开发问答t library that accesses some custom hardware via a USB port.I\'ve read that Silverlight contains a subset of the .Net runtime.So, my question is, would this subset be suffi

We have a .Ne开发者_开发问答t library that accesses some custom hardware via a USB port. I've read that Silverlight contains a subset of the .Net runtime. So, my question is, would this subset be sufficient for the .Net library to function?


No, you cannot use a .NET library that accesses a USB port from inside Silverlight.

The closest you can get is an SL4 Out-of-browser app with elevated privs which can use COM components.


YES YOU COULD

an update only for people like me that founds this question, here the answer:

http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消