Unicode C++
Unicode C++
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Unicode C++ Downloads
#include <CkCertW.h>
#include <CkDateTimeW.h>
void ChilkatSample(void)
{
CkCertW cert;
// ------------------------------------------------------------------------
// The GetValidFromDt method is deprecated:
CkDateTimeW *ckdt1 = cert.GetValidFromDt();
if (cert.get_LastMethodSuccess() == false) {
wprintf(L"%s\n",cert.lastErrorText());
return;
}
// ...
// ...
delete ckdt1;
// ------------------------------------------------------------------------
// Do the equivalent using the ValidFromStr property
CkDateTimeW ckdt2;
ckdt2.SetFromRfc822(cert.validFromStr());
}