Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   how to access items of all sub-folders within default Calendar folder (http://www.outlookbanter.com/add-ins-outlook/100197-how-access-items-all-sub.html)

Aditya Sen February 17th 10 06:15 AM

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.


All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com