摘要: 使用CreateFile打开串口(COM)号大于9时报错,GetLastError()的值为2。 解决方法: // 把串口名称由 "COMN" 改为 "\\.\COMN",N没有大小限制 const int len = 20; char newCommName[len + 1] = { 0 }; s 阅读全文
posted @ 2018-05-17 23:16 晴天224 阅读(698) 评论(0) 推荐(0) 编辑