function SerRead(Handle: TSerialHandle; var Buffer; Count: LongInt): LongInt;
begin
Result := fpRead(Handle, Buffer, Count);
end;
i don't understand the
declaration for "buffer" in the function below, because no type is
declared for "buffer".
I believe that the type is irrelevant, you can use whatever you want. I
think that it's just used by fpRead to buffer data. You only provide the
space for the buffer but you don't need to read it directly. It seems
that Count has to be the size of the buffer. But I am just guessing....
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal