摘要: 最近在开发一套终端机上的自助服务软件,有许多地方需要软硬件交互,串口编程就显得尤其重要了。下面就以扫描枪为例,看看C#后台是如何获取扫描条码的。首先需要using System.IO.Ports。 1 static void Main(string[] args) 2 { 3 //string[] PortList = SerialPort.GetPortNames(); 4 //foreach (var ComItem in PortList) 5 //{ 6 // if (ComItem == "C... 阅读全文
posted @ 2012-09-29 14:38 编不好程的东东不是一个好歌手 阅读(1119) 评论(0) 推荐(0) 编辑