SV: [fpc-pascal] Resending: Trying to convert some C code
Ole J. Røtne
ole.rotne at online.no
Tue Nov 7 15:12:32 CET 2006
> -----Opprinnelig melding-----
> Fra: fpc-pascal-bounces at lists.freepascal.org
> [mailto:fpc-pascal-bounces at lists.freepascal.org] På vegne av
> Henry Vermaak
> Sendt: 7. november 2006 15:04
> Til: FPC-Pascal users discussions
> Emne: Re: [fpc-pascal] Resending: Trying to convert some C code
>
> >BN_ULONG is just another way of saying unsigned long.
> >But redefined because it's C & for different
> compilers/platforms i think.
>
> in that case, use d: PCardinal or pcULong (in ctypes -
> probably better)
Ah. Will do :)
>
> >As in, is this right "way" to convert parameter & return value..?
> >char *BN_bn2hex(const BIGNUM *a);
> >function BN_Bn2Hex(a:BNPtr):PChar; // here BNPtr is of type
> >BNPtr:^BIGNUM
>
> that looks o.k. rather use "const a:BNPtr", though.
Done that, and got it working too :)
Anyway, got it working thanks to you & Felipe.
So a big thank-you to you both.
Ole JR
More information about the fpc-pascal
mailing list