> -----Opprinnelig melding-----
> Fra: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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 

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to