开发者

How can I use serial port in C# Silverlight 4.0 application?

开发者 https://www.devze.com 2023-02-22 21:48 出处:网络
How ca开发者_C百科n I use serial port in a Silverlight 4.0 application? In Silverlight 4, this is only possible via COM, and only out of browser.

How ca开发者_C百科n I use serial port in a Silverlight 4.0 application?


In Silverlight 4, this is only possible via COM, and only out of browser.

Here is an article showing how it can be done.

Usage while in-browser or directly is prohibited by Silverlight's runtime.


Use P/Invoke with Silverlight 5 to talk to Win32 libraries directly. Basically your re-writing the .NET SerialPort class. That's exactly what Ive done.

0

精彩评论

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