We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
type Tbuffer = packed array[0..1024] of byte; type TMyoverlapped = class(Tobject) Data:tbuffer; overlapped:TOverlapped; end; // when posting a read // the Buffer will be deleted on completion Buffer:= TMyoverlapped.create; ReadFileEx(handle,@Buffer.data,1024,@buffer.overlapped,_onSerialData); //completion routine procedure Tmainwindow._onSerialdata(Errorcode:integer; NumberOfbytesReceived:integer; overlapped:TOverlapped);
Join the community of 500,000 technology professionals and ask your questions.