API communications: SetCommEventMask
Posted on 1998-06-25
I need my VB program to generate an event when a specific character is received in a comm port. I've tried using MSComm control with InputLen=1 to analyze each character, but the data is received too fast for this method. I've heard that by using the API I can generate an event when a specific character is received (ie. carriage return or linefeed). I'm not extremely familar with the API; can anyone provide a detailed example. I would like to be able to leave the received string in the buffer until a carriage return and linefeed are received, then read the string from the buffer.