c++ Programming Glossary: m_hcommport
Serial Comm using WriteFile/ReadFile http://stackoverflow.com/questions/6036716/serial-comm-using-writefile-readfile dwBytesWritten DWORD dwBytesRead int isRead false HANDLE m_hCommPort CreateFile L COM2 GENERIC_READ GENERIC_WRITE access read and.. port... config.DCBlength sizeof config if GetCommState m_hCommPort config 0 printf Get configuration port has a problem. return.. config.fDtrControl 0 config.fRtsControl 0 if SetCommState m_hCommPort config printf Failed to Set Comm State Reason d n GetLastError..
|