Sample code for 30+ languages & platforms
PowerBuilder

Compute CRC32 of a File

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

Chilkat PowerBuilder Downloads

PowerBuilder
integer li_rc
oleobject loo_ZipCrc
integer li_Crc
string ls_HexStr

loo_ZipCrc = create oleobject
li_rc = loo_ZipCrc.ConnectToNewObject("Chilkat.ZipCrc")
if li_rc < 0 then
    destroy loo_ZipCrc
    MessageBox("Error","Connecting to COM object failed")
    return
end if
// Use a relative for absolute path to the file..
li_Crc = loo_ZipCrc.FileCrc("qa_data/hamlet.xml")
ls_HexStr = loo_ZipCrc.ToHex(li_Crc)
Write-Debug ls_HexStr


destroy loo_ZipCrc