(Tcl) Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains. Note: This example requires Chilkat v11.0.0 or greater.
load ./chilkat.dll
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
|