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

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat Delphi DLL Downloads

Delphi DLL
var
success: Boolean;
email: HCkEmail;
sa: HCkStringArray;
st: HCkStringTable;

begin
success := False;

email := CkEmail_Create();

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The GetLinkedDomains method is deprecated:

sa := CkEmail_GetLinkedDomains(email);
if (CkEmail_getLastMethodSuccess(email) = False) then
  begin
    Memo1.Lines.Add(CkEmail__lastErrorText(email));
    Exit;
  end;

//  ...
//  ...

CkStringArray_Dispose(sa);

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

st := CkStringTable_Create();
success := CkEmail_LinkedDomains(email,st);
if (success = False) then
  begin
    Memo1.Lines.Add(CkEmail__lastErrorText(email));
    Exit;
  end;

CkEmail_Dispose(email);
CkStringTable_Dispose(st);