[fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jul 2 11:23:33 CEST 2014


On 02 Jul 2014, at 10:36, Virgo Pärna wrote:

> 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.

As has been mentioned earler in the thread, MyReturnStr itself is a  
pchar.


Jonas


More information about the fpc-pascal mailing list