::OutputDebugString( _T("GetCommState Error") ) ![]() If ( ( m_bPortReady = GetCommState( m_hComm, &m_dcb ) ) = 0 ) M_hComm = CreateFile( L"//./" + portname, GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0 ) īool CSerialPort::ConfigurePort( DWORD BaudRate, BYTE ByteSize, DWORD fParity, BYTE Parity, BYTE StopBits ) Bool SetCommunicationTimeouts( DWORD ReadIntervalTimeout, DWORD ReadTotalTimeoutMultiplier, DWORD ReadTotalTimeoutConstant, DWORD WriteTotalTimeoutMultiplier,DWORD WriteTotalTimeoutConstant ) īool ConfigurePort( DWORD BaudRate, BYTE ByteSize, DWORD fParity, BYTE Parity, BYTE StopBits )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |