How way to access the USB ComPort in silverlight 4?
-
Wednesday, December 02, 2009 11:32 PM
I saw silverlight 4's new feature:
COM automation enables access to devices and other system capabilities by calling into application components; for instance to access a USB security card reader.
But I can't find any thing to learn for this .
Any one help me ! Thank you soooooooooooooo much!
All Replies
-
Thursday, December 03, 2009 7:06 AM
This video shows com interop with Excel and comes with source code.
-
Thursday, December 03, 2009 7:36 AM
Thank you Sledge70!
I know that video, But I can't find way to use the USB ComPort!
I want know how way communication to my USB SCM.
-
Thursday, December 03, 2009 7:36 AM
Thank you Sledge70!
I know that video, But I can't find way to use the USB ComPort!
I want know how way communication to my USB SCM.
-
Thursday, December 03, 2009 7:52 AM
Depends on what you need to do with the usb com port. If you need direct access the driver would either need to expose a Com interface or you'd have to write one yourself and expose it via com.
If you just accessing say a usb stick then you could do that via the file system and write a quick com object that gives you access.
-
Friday, December 04, 2009 5:09 AM
I just want to like the SerialPort control fundation!
-
Friday, December 04, 2009 5:38 AM
You would need a driver that exposes some form of com interop or you would need to write something to control the port yourself and expose that via com.
-
Saturday, December 05, 2009 2:29 AM
yes , can I get some code to learn for this in silverlight 4's com interop?
-
Sunday, December 06, 2009 1:31 AM
I hope use the ComPort like this way:
dynamic speech = ComAutomationFactory.CreateObject("Sapi.SpVoice");
speech.Speak(SpeechText.Text);But I can't find the comport object in ComAutommationFactory.CreateObject definition.
-
Monday, December 14, 2009 12:25 AMProblem has been resolved by my self!thx help!
-
Sunday, January 17, 2010 11:06 PM
Hi Jacle169,
How did you find the solution to this problem. This post comes up in the search engines as one of the highest yet there is no answer posted.
Could you point us in the right direction?
Clinton
-
Tuesday, February 09, 2010 1:44 PMI am looking since a few days and I have big problems to accepting the COM Automation to access the serial ports. I wish there would be "Out of the Box" support for serial ports. Silverlight gets very messy with COM support. It feels like MS was addressing tiny issues with a big (COM) hammer rather than adding selectivity more features to silverlight. Very messy ... And yes - if you found a solution how to access the serial port please share it.
-
Wednesday, October 26, 2011 5:53 AM
How would be useful?????????????????????????????????????
-
Wednesday, February 29, 2012 8:00 PM
Hi, can you post your solution, please?
-
Monday, June 25, 2012 3:40 PM
jacle169, How did you solve it?

