Unicode C++
Unicode C++
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Unicode C++ Downloads
#include <CkCacheW.h>
#include <CkDateTimeW.h>
void ChilkatSample(void)
{
CkCacheW cache;
// ....
// ....
const wchar_t *cache_item_key = L"xyz";
// Instead of this:
CkDateTimeW *dt1 = cache.GetExpirationDt(cache_item_key);
delete dt1;
// Do this:
CkDateTimeW dt2;
dt2.SetFromRfc822(cache.getExpirationStr(cache_item_key));
}