C++ Requires Chilkat v11.0.0+
C++
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat C++ Downloads
#include <CkCert.h>
#include <CkDateTime.h>
void ChilkatSample(void)
{
CkCert cert;
// ------------------------------------------------------------------------
// The GetValidFromDt method is deprecated:
CkDateTime *ckdt1 = cert.GetValidFromDt();
if (cert.get_LastMethodSuccess() == false) {
std::cout << cert.lastErrorText() << "\r\n";
return;
}
// ...
// ...
delete ckdt1;
// ------------------------------------------------------------------------
// Do the equivalent using the ValidFromStr property
CkDateTime ckdt2;
ckdt2.SetFromRfc822(cert.validFromStr());
}