Sample code for 30+ languages & platforms
Unicode C++

Compute CRC32 of a File

Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkZipCrcW.h>

void ChilkatSample(void)
    {
    CkZipCrcW zipCrc;
    //  Use a relative for absolute path to the file..
    int crc = zipCrc.FileCrc(L"qa_data/hamlet.xml");
    const wchar_t *hexStr = zipCrc.toHex(crc);
    wprintf(L"%s\n",hexStr);
    }