CDCB dcb; if (!::GetCommState(m_hFile,&dcb)) { return FALSE; } dcb.fNull=false; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! dcb.fOutxCtsFlow = false; // Disable CTS monitoring dcb.fOutxDsrFlow = false; // Disable DSR monitoring dcb.fDtrControl = DTR_CONTROL_DISABLE; // Disable DTR monitoring dcb.fOutX = false; // Disable XON/XOFF for transmission dcb.fInX = false; // Disable XON/XOFF for receiving dcb.fRtsControl = RTS_CONTROL_DISABLE; // Disable RTS (Ready To Send) if (!::SetCommState(m_hFile,&dcb)) { return FALSE; }
该问题我在ACCESS PORT软件开发网站提出过,不过他们好像不感兴趣,具体连接见: http://www.sudt.com/cn/guestbook/ 标题:AccessPort过滤0x00的问题 |