C++
C++
Example: Crypt2.CrcFile method
Demonstrates how to call the CrcFile method.Chilkat C++ Downloads
#include <CkCrypt2.h>
void ChilkatSample(void)
{
CkCrypt2 crypt;
const char *filePath = "c:/temp/someFile.dat";
unsigned long crc32 = crypt.CrcFile("crc-32",filePath);
std::cout << crc32 << "\r\n";
unsigned long crc8 = crypt.CrcFile("crc8",filePath);
std::cout << crc8 << "\r\n";
}