Alaska Software Inc. - CRC-code
Username: Password:
AuthorTopic: CRC-code
GertCRC-code
on Mon, 10 Mar 2008 17:00:56 +0100
Dear all,

I'm looking for some code to create a CRC-checksum.
Does anybody know if this is available in Xbase++??

Gert
James Loughner Re: CRC-code
on Mon, 10 Mar 2008 21:42:38 -0400
http://en.wikipedia.org/wiki/Cyclic_redundancy_check

Jim

Gert wrote:
> Dear all,
> 
> I'm looking for some code to create a CRC-checksum.
> Does anybody know if this is available in Xbase++??
> 
> Gert 
> 
>
Pablo BotellaRe: CRC-code
on Tue, 11 Mar 2008 09:39:04 +0100
Hi,

ot4xb since Ver 1.3 have included the function nCRC32()
This is the link for the latest build
http://www.xbwin.com/download/ot4xb_1_5_0_3.zip

And the syntax:
nCRC32(nPrevCrc32 ,cBuffer) -> nCRC32
nPrevCrc32 - Must be 0 at the first call.

nCRC32 is return as a LONG signed value, so sometimes it will be represented as negative for values >= 0x80000000 to get always the positive representation:
Unsigned32( nCrc32( 0,cString) )

Regards,
Pablo Botella