PowerBuilder
PowerBuilder
Example: Crypt2.CrcFile method
Demonstrates how to call the CrcFile method.Chilkat PowerBuilder Downloads
integer li_rc
oleobject loo_Crypt
string ls_FilePath
integer li_Crc32
integer li_Crc8
loo_Crypt = create oleobject
li_rc = loo_Crypt.ConnectToNewObject("Chilkat.Crypt2")
if li_rc < 0 then
destroy loo_Crypt
MessageBox("Error","Connecting to COM object failed")
return
end if
ls_FilePath = "c:/temp/someFile.dat"
li_Crc32 = loo_Crypt.CrcFile("crc-32",ls_FilePath)
Write-Debug string(li_Crc32)
li_Crc8 = loo_Crypt.CrcFile("crc8",ls_FilePath)
Write-Debug string(li_Crc8)
destroy loo_Crypt