Aug 11, 2001 #1 youssef Programmer Mar 13, 2001 96 BE Hi, I would like the command for know how datas I have in my serial buffer when I use CreateFile and ReadFile. Thanks
Hi, I would like the command for know how datas I have in my serial buffer when I use CreateFile and ReadFile. Thanks
Aug 11, 2001 Thread starter #2 youssef Programmer Mar 13, 2001 96 BE Hi, I would like to know how datas is in the InBuffer of my serialport. I find GetFileSize but nothing. Can You Help me ReadFile (hPort, &Byte, 1, &dwBytesTransferred, 0); dwSize = GetFileSize(hPort, NULL); // Display the data read. if (dwBytesTransferred == 1) // ProcessChar (Byte); { m_editReceiveData = Byte; m_editBuffer = dwBytesTransferred; m_test = dwSize; UpdateData(FALSE); } Upvote 0 Downvote
Hi, I would like to know how datas is in the InBuffer of my serialport. I find GetFileSize but nothing. Can You Help me ReadFile (hPort, &Byte, 1, &dwBytesTransferred, 0); dwSize = GetFileSize(hPort, NULL); // Display the data read. if (dwBytesTransferred == 1) // ProcessChar (Byte); { m_editReceiveData = Byte; m_editBuffer = dwBytesTransferred; m_test = dwSize; UpdateData(FALSE); }