![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
"amit deshpande" wrote in
oups.com: 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 It's a DATE. (int part = days since midnight dec 1899, fractional part = portion of the day); you can read this as COleDateTime if you want an easier way to access it. -- dan |
#3
|
|||
|
|||
![]() Dan Mitchell wrote: "amit deshpande" wrote in oups.com: 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 It's a DATE. (int part = days since midnight dec 1899, fractional part = portion of the day); you can read this as COleDateTime if you want an easier way to access it. -- dan thank u i have succeeded in doing it thnax and regards Amit Deshpande |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert Date given by outlook api to java date | amit deshpande | Outlook - General Queries | 0 | June 26th 06 03:24 PM |
Outlook return address issues | Joejean | Outlook - Installation | 0 | June 24th 06 07:30 PM |
Outlook Account Management API | Rom | Add-ins for Outlook | 2 | June 8th 06 03:54 PM |
Outlook Send/Receive API | Colin Bowern | Outlook and VBA | 0 | June 7th 06 04:36 PM |
Outlook Calendar API | [email protected] | Outlook - General Queries | 2 | March 13th 06 05:11 AM |