[fpc-pascal] How to poll for a byte in Input?

tcoq tcoq at free.fr
Fri Dec 9 17:56:13 CET 2011


On windows, I did not find WaitForSingleObject, which is actually going to wait for the file.
However I found ReadFileEx in the Windows API, which is an asynchronous read on the file. I'll try using that.

----- Mail Original -----
De: "Michael Van Canneyt" <michael at freepascal.org>
À: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
Envoyé: Vendredi 9 Décembre 2011 16h57:47 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [fpc-pascal] How to poll for a byte in Input?
>...
You must use fpSelect() or Poll on the handle on linux/unix.
On windows, you'll need to WaitForObject() or so on the file handle.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list