Sample code for 30+ languages & platforms
DataFlex

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoCrypt
    String sFilePath
    UInteger iCrc32
    UInteger iCrc8

    Get Create (RefClass(cComChilkatCrypt2)) To hoCrypt
    If (Not(IsComObjectCreated(hoCrypt))) Begin
        Send CreateComObject of hoCrypt
    End

    Move "c:/temp/someFile.dat" To sFilePath

    Get ComCrcFile Of hoCrypt "crc-32" sFilePath To iCrc32
    Showln iCrc32

    Get ComCrcFile Of hoCrypt "crc8" sFilePath To iCrc8
    Showln iCrc8


End_Procedure