Am Donnerstag, den 14.09.2006, 11:14 +0200 schrieb Jonas Maebe: > On 14 Sep 2006, at 10:50, Marc Santhoff wrote: > > >> function H5Screate_simple(rank:longint; dims: phsize_t; > >> maxdims:phsize_t):hid_t;cdecl;external; > > > > Yes, this does actually work. :) > > > >> When passing arrays, pass the address of the first element of the > >> array. > > > > Still thinking about that, I don't want to change calling syntax very > > much ... > > Well, you can create different overloaded versions for all possible > uses of course: > > function H5Screate_simple(rank:longint; dims: array of hsize_t; > maxdims: array of hsize_t):hid_t;cdecl;external; > function H5Screate_simple(rank:longint; dims: array of hsize_t; > maxdims: phsize_t):hid_t;cdecl;external; > function H5Screate_simple(rank:longint; dims: phsize_t; maxdims: > array of hsize_t):hid_t;cdecl;external; > function H5Screate_simple(rank:longint; dims: phsize_t; maxdims: > array of hsize_t):hid_t;cdecl;external; > > (possibly leaving some out which don't make sense)
Yes, great! I've tried in the meantime and found that I can have both or all of them, that's nice. :) Thanks again, Marc _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal