if (eEvent & CSerial::EEventRcvEv) { m_SerialPort.Read(szData, nBuflen, &dwRead); szData[dwRead] = '\0';