Re: listening serial port

Tech-Archive recommends: Fix windows errors by optimizing your registry



Use the WaitCommEvent API from a separate thread. WaitCommEvent will return
when one of the events defined in SetCommMask is triggered.

--
Floyd

"Mark Albourgh" <malbourgh1@xxxxxxxxx> wrote in message
news:d2n81b$jr9$1@xxxxxxxxxxxxxxxxx
> Does anyone know a way of listening to serial port?
> I know how to read data from it, but only know
> to check the port for the data constantly which occupies cpu a lot.
> I need this to receive data from a machine.
>
> Thx
>
>


.