Sample code for 30+ languages & platforms
Delphi DLL Requires Chilkat v11.0.0+

Transition from Email.GetDigest to Email.GetDigestEmail

Provides instructions for replacing deprecated GetDigest method calls with GetDigestEmail.

Chilkat Delphi DLL Downloads

Delphi DLL
var
success: Boolean;
email: HCkEmail;
index: Integer;
emailObj: HCkEmail;
emailOut: HCkEmail;

begin
success := False;

email := CkEmail_Create();

//  ...
//  ...
index := 0;

//  ------------------------------------------------------------------------
//  The GetDigest method is deprecated:

emailObj := CkEmail_GetDigest(email,index);
if (CkEmail_getLastMethodSuccess(email) = False) then
  begin
    Memo1.Lines.Add(CkEmail__lastErrorText(email));
    Exit;
  end;

//  ...
//  ...

CkEmail_Dispose(emailObj);

//  ------------------------------------------------------------------------
//  Do the equivalent using GetDigestEmail.
//  Your application creates a new, empty Email object which is passed 
//  in the last argument and filled upon success.

emailOut := CkEmail_Create();
success := CkEmail_GetDigestEmail(email,index,emailOut);
if (success = False) then
  begin
    Memo1.Lines.Add(CkEmail__lastErrorText(email));
    Exit;
  end;

CkEmail_Dispose(email);
CkEmail_Dispose(emailOut);