i need some help on this api. I'm opening the serial port, setting comm state, waiting an event that tell me that there are chars in input buffer, so calling ClearComError that should fill a COMSTAT structure where i then read '.cbInQueue' that's how many bytes are waiting in the input buffer (to read). But calling ClearCommError, the routine return succesfully but with ZERO as .cbInQueue and i really don't understand why. But chars in the buffers are not zero becouse i can read them. If some help ... Thanks Many thanks
Posted on 2001-03-31 09:37:00 by angelo
ok, it was my mistake on COMSTAT structure. now everything work Thanks in any case
Posted on 2001-04-01 17:15:00 by angelo