博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月10日

摘要: publicclassEpsopnPrinter{//打印文字(端口号字符)publicstaticstringPrintString(intPort,stringval){System.IO.Ports.SerialPortsp=newSystem.IO.Ports.SerialPort();sp.PortName="COM"+Port.ToString();try{sp.Open();}catch{return"端口被占用";}List<byte>data=newList<byte>();string[]lines=val.S 阅读全文

posted @ 2012-08-10 14:50 hyruur 阅读(366) 评论(0) 推荐(0) 编辑