CString xGetJEPGTakeDate(Image* pImage)
{
CString csDate = L"";
UINT size = 0;
PropertyItem *pItemInfo = NULL;
UINT nImgSize = pImage->GetPropertyItemSize(PropertyTagExifDTOrig);
if (nImgSize == 0)
{
return csDate;
}
pItemInfo = (PropertyItem*)malloc(nImgSize);
Status status = pImage->GetPropertyItem(PropertyTagExifDTOrig,nImgSize,pItemInfo);
if(status != Ok)
{
free(pItemInfo);
return csDate;
}
char* pstrDate = (char*)pItemInfo->value;
CString strTime(pstrDate);//2001:01:01 01:01:01
free(pItemInfo);
return csDate;
}