[fpc-pascal] DLL call works on FPC 2.6.4 but not with D7
Virgo Pärna
virgo.parna at mail.ee
Wed Jul 2 10:36:23 CEST 2014
On Tue, 01 Jul 2014 13:42:52 -0400, Paul Breneman <Paul2006 at BrenemanLabs.com> wrote:
> Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0],
> StringLen, requiredSize, RInfo);
>
Also, first character of string is 1'st, not 0'th. When passing string as
PChar like that would cause overwriting internal string structures AFAIK.
--
Virgo Pärna
virgo.parna at mail.ee
More information about the fpc-pascal
mailing list