View Single Post
  #1  
Old February 17th 10, 06:15 AM
Aditya Sen Aditya Sen is offline
Junior Member
 
First recorded activity at Outlookbanter: Feb 2010
Posts: 2
Thumbs down how to access items of all sub-folders within default Calendar folder

Hello everyone,
I am making this application where i need to sync the calender items. I am able to do so for the Default Calendar folders of appointments, tasks and journals. But when i import some calendar, it create a sub folder within the Default folder named Calendar. I am not able to acess the items of this folder. The code that i am using to acess the default folder for appointments is as follows:

_ApplicationPtr m_pApp;
MAPIfolderPtr m_pAppointmentfolder;

m_pApp.CreateInstance(__uuidof(Application));
m_pAppointmentfolder = m_pApp-GetNamespace(_bstr_t("MAPI"))-Getdefaultfolder ( olfoldercalendar);

I need to do this for all the subfolders within the default Calendar folder.
I am using Outlook 2010(beta) and I am programming in C++ in VC++. Please if someone can guide me in this direction.
Thanks in advance.
Ads