C++
C++
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat C++ Downloads
#include <CkEmail.h>
#include <CkDateTime.h>
void ChilkatSample(void)
{
CkEmail email;
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
CkDateTime *dateTimeObj = email.GetDt();
if (email.get_LastMethodSuccess() == false) {
std::cout << email.lastErrorText() << "\r\n";
return;
}
// ...
// ...
delete dateTimeObj;
// ------------------------------------------------------------------------
// Do the equivalent using EmailDateStr.
CkDateTime dt;
dt.SetFromRfc822(email.emailDateStr());
}