Sample code for 30+ languages & platforms
Delphi ActiveX

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;

...

procedure TForm1.Button1Click(Sender: TObject);
var
crypt: TChilkatCrypt2;
filePath: WideString;
crc32: Cardinal;
crc8: Cardinal;

begin
crypt := TChilkatCrypt2.Create(Self);

filePath := 'c:/temp/someFile.dat';

crc32 := crypt.CrcFile('crc-32',filePath);
Memo1.Lines.Add(IntToStr(crc32));

crc8 := crypt.CrcFile('crc8',filePath);
Memo1.Lines.Add(IntToStr(crc8));
end;