|
自己搞定了,找了半天,是没有从FileTime转到CTime
如下:
SPropValue *pspvTime = NULL;
SizedSPropTagArray(1, sptaTime) = { 1, PR_MESSAGE_DELIVERY_TIME};
hr = pMsg->GetProps((SPropTagArray *) &sptaTime,
0, &cValues, &pspvTime);
if(FAILED(hr))
{
szError.Format(L"Get Time Error:%ld",GetLastError());
AfxMessageBox(szError);
break;
}
CTime time(pspvTime->Value.ft);
strTime.Format(L"%.2d%.2d%.2d%.2d%.2d%.2d",
time.GetYear(),time.GetMonth(),
time.GetDay(),time.GetHour(),
time.GetMinute(),time.GetSecond());
要分的来接分.
|
|