A
amit deshpande
hi ,
i have following code
_ContactItem contactItem;
COleException e;
OleInitialize (NULL);
_Application olApp;
MAPIFolder pFolder;
if (!olApp.CreateDispatch(_T("Outlook.Application"), &e))
{
CString strError;
strError.Format(_T("CreateDispatch() failed with error 0x%08lx"),
e.m_sc);
//AfxMessageBox(strError, MB_SETFOREGROUND);
OleUninitialize ();
return 0;
}
_NameSpace oNameSpace = olApp.GetNamespace(_T("MAPI"));
pFolder=oNameSpace.GetDefaultFolder(10);
_Items Items;
_Items pItems= pFolder.GetItems();
pContact = Items.GetFirst ();
long l = pContact.GetBirthday();//which i have to convert to long value
//function returns double value
i haven't understood the value that GetBirthDay() returns it is a
double value and it is very small value i.e 5 digits only.
so it can't be no of miliseconds or seconds from 1970's
so does anybody know how to convert this double value to Ctime
i have following code
_ContactItem contactItem;
COleException e;
OleInitialize (NULL);
_Application olApp;
MAPIFolder pFolder;
if (!olApp.CreateDispatch(_T("Outlook.Application"), &e))
{
CString strError;
strError.Format(_T("CreateDispatch() failed with error 0x%08lx"),
e.m_sc);
//AfxMessageBox(strError, MB_SETFOREGROUND);
OleUninitialize ();
return 0;
}
_NameSpace oNameSpace = olApp.GetNamespace(_T("MAPI"));
pFolder=oNameSpace.GetDefaultFolder(10);
_Items Items;
_Items pItems= pFolder.GetItems();
pContact = Items.GetFirst ();
long l = pContact.GetBirthday();//which i have to convert to long value
//function returns double value
i haven't understood the value that GetBirthDay() returns it is a
double value and it is very small value i.e 5 digits only.
so it can't be no of miliseconds or seconds from 1970's
so does anybody know how to convert this double value to Ctime