Sample code for 30+ languages & platforms
Visual Basic 6.0

Compute CRC32 of a File

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

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim zipCrc As New ChilkatZipCrc
' Use a relative for absolute path to the file..
Dim crc As Long
crc = zipCrc.FileCrc("qa_data/hamlet.xml")
Dim hexStr As String
hexStr = zipCrc.ToHex(crc)
Debug.Print hexStr