How to access appointments in non-default folder in Outlook


A

Aditya Sen

Hello Everyone
I am making this application where i need to sync the calender items.
am able to do so for the Default Calendar folders of appointments, task
and journals. But when i import some calendar, it create a sub folde
within the Default folder named Calendar in Outlook. I am not able t
access the items of this folder. The code that i am using to access th
default folder for appointments is

_ApplicationPtr m_pApp
MAPIfolderPtr m_pAppointmentfolder

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

I am using Outlook 2010(beta) and I am programming in C++ in VC++
Please if someone can guide me in this direction, It would be a grea
help as I need to complete this quickly
Thanks in advance
 
Ad

Advertisements

B

Brian Tillman [MVP-Outlook]

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 in Outlook. I am not able to
access the items of this folder. The code that i am using to access the
default folder for appointments is :

_ApplicationPtr m_pApp;
MAPIfolderPtr m_pAppointmentfolder;

First, the correct newsgroup for programming questions is
microsoft.public.outlook.program_vba. The correct forum for Outlook 2010
questions is
http://social.technet.microsoft.com/Forums/en-US/outlook/threads
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top