摘要: 简单用法:1.定义成员: CSerialPortm_SerialPort; 2.初始化:m_SerialPort.SetBufferSize(1024,1024);m_SerialPort.SetWnd(m_hWnd);m_SerialPort.SetNotifyNum(DEF_IN_BYTE_SIZE);if (m_SerialPort.IsOpen()){m_SerialPort.Close();}m_SerialPort.Open(1,"9600,O,8,1");m_SerialPort.ClearInputBuffer();m_SerialPort.ClearOut 阅读全文
posted @ 2011-11-20 16:49 phata 阅读(1674) 评论(0) 推荐(0) 编辑