Sample code for 30+ languages & platforms
Xbase++

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Xbase++ Downloads

Xbase++
LOCAL oCrypt
LOCAL cFilePath
LOCAL nCrc32
LOCAL nCrc8

oCrypt := CreateObject("Chilkat.Crypt2")

cFilePath := "c:/temp/someFile.dat"

nCrc32 := oCrypt:CrcFile("crc-32", cFilePath)
? Str(nCrc32)

nCrc8 := oCrypt:CrcFile("crc8", cFilePath)
? Str(nCrc8)

oCrypt:destroy()