here is the code
The code is done for Outlook 2000
{
_ApplicationPtr pApp;
_ItemsPtr pItems;
MAPIFolderPtr pFolder;
_ContactItemPtr pContact;
HRESULT hr,hrAppEvent;
ApplicationEventsPtr pAppEvent;
// access outlook com
OleInitialize (NULL);
hr=pApp.CreateInstance(__uuidof(Application));
if(FAILED(hr))
{
printf("Outlook Initialization failed");
}
_TaskItemPtr pTaskItem= pApp-CreateItem(olTaskItem);
hrAppEvent=pAppEvent.CreateInstance(__uuidof(TaskI tem));
if(FAILED(hrAppEvent))
{
printf("Application Initialization failed");
}
pAppEvent-Reminder(pTaskItem);
printf("%s",pTaskItem-GetSubject());
}
Dmitry Streblechenko wrote:
So what is your existing code and what exactly fails?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
wrote in message
ups.com...
hi
I am trying to access outlook using VC ++, i have succeeded in adding
reminder and getting contact list but i was unable to get reminder from
outlook.The class ApplicationEvents does this this functionalty and
also has method as
ApplicationEvents :: Reminder(IDispatch *LDDISPATCH) but was unable to
get reminder using this.
so please reply me