A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get reminder Event form outlook using VC++



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 13th 06, 08:22 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default How to get reminder Event form outlook using VC++

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

Ads
  #2  
Old June 13th 06, 06:54 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get reminder Event form outlook using VC++

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



  #3  
Old June 27th 06, 09:34 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default How to get reminder Event form outlook using VC++


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


  #4  
Old June 27th 06, 07:18 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get reminder Event form outlook using VC++

I am not sure what your code is trying to do. You cannot instantiate an
ApplicationEvents object. *Your* code must implement it (it is a
dispinterface, so it is really just an IDispatch). Subscribe to the
Application events (QI for IConnectionPointContainer, call
IConnectionPointContainer::FindConnectionPoint, then
IConnectionPoint::Advise). Whenever that event is raised, your
implementation of IDispatch::Invoke (the one you pass to
IConnectionPoint::Advise) will be called with the appropriate dispid.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
ups.com...

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




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I send an automated email reminder for a calendar event ? IvanM Outlook - Calandaring 3 September 18th 06 11:39 PM
Recurring event causes Outlook reminder alarm to quit George Outlook - Calandaring 1 May 7th 06 02:39 AM
Default event reminder interval Klitos Outlook - Calandaring 1 April 12th 06 08:03 AM
Outlook 2003 Event Reminder Unhides the Taskbar Sam Fertel Outlook - General Queries 0 March 13th 06 04:47 PM
cannot dismiss a reminder from a January 1, 1601 event tbone Outlook - Calandaring 0 March 1st 06 04:59 PM


All times are GMT +1. The time now is 05:55 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-2025 Outlook Banter.
The comments are property of their posters.