Hi, I would like to export (cdecl) SetLength like this
procedure SetArrayLength(var DynArr: DynArrayType; NewLen: Integer); cdecl; export; begin SetLength(DynArr, NewLen); end; but the type DynArrayType is not know, though it is used in the definition of the function ./rtl/inc/system.fpd:Function Length(A : DynArrayType) : Integer; Is it an internal compiler type ? Is it possible what I try to do. (cfr writeln) Probably not, but you never know if you don't ask. I would like to resize pascal dynamic arrays from c-code and would like to avoid to have to define an exported function for every dyn array type (element size). regards, Den Jean _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel