[fpc-pascal] Pipe vs Memory buffer.
José Mejuto
joshyfun at gmail.com
Sun Jan 29 14:04:29 CET 2017
El 28/01/2017 a las 13:32, fredvs escribió:
> TOpusFileCallbacks = record
> read: op_read_func;
> seek: op_seek_func;
> tell: op_tell_func;
> close: op_close_func;
> end;
>
> This does not work:
>
> HandleOP := op_test_callbacks(pointer(InPipe),op_callbacks, BufferURL[0],
> PipeBufferSize, err);
>
Hello,
As you need to use records you should specify {$PACKRECORDS C} or you
could get a different record layout than C expects.
--
More information about the fpc-pascal
mailing list