Originally Posted by
?ëu?±o Mart??nez
By the way this code seems to work both Delphi and FPC:[pascal]PROGRAM example;
TYPE
TLIST_ITEMptr = ^TLIST_ITEM;
TLIST_ITEM = RECORD
Field: INTEGER;
Other: INTEGER;
END;
TLISTptr = ^TLIST;
TLIST = ARRAY [0..80] OF TLIST_ITEM;
FUNCTION get_list: TLISTptr; CDECL; EXTERNAL 'lib.dll';
VAR
TheList: TLISTptr;
BEGIN
{ Somewhere }
TheList := get_list;
WriteLn (TheList^[0]);
END.[/pascal]But the returned list size may vary from 1 to infinite, so this isn't the solution
¬øAlny idea about how to work with a non-sized array pointer in Delphi?
Thanks
Bookmarks