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

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set email [new_CkEmail]

#  ...
#  ...

#  ------------------------------------------------------------------------
#  The GetLinkedDomains method is deprecated:

# sa is a CkStringArray
set sa [CkEmail_GetLinkedDomains $email]
if {[CkEmail_get_LastMethodSuccess $email] == 0} then {
    puts [CkEmail_lastErrorText $email]
    delete_CkEmail $email
    exit
}

#  ...
#  ...

delete_CkStringArray $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.

set st [new_CkStringTable]

set success [CkEmail_LinkedDomains $email $st]
if {$success == 0} then {
    puts [CkEmail_lastErrorText $email]
    delete_CkEmail $email
    delete_CkStringTable $st
    exit
}


delete_CkEmail $email
delete_CkStringTable $st