![]() |
Reminder Event parameter problem
Hi
Im using the Reminder events, Im able to get all the events in the Reminders. The BeforeReminderShow event has a VARIANT_BOOL parameter, we have to set this parameter to "true"(VARIANT_TRUE) if we dont want to show the default reminder dialog. I tried setting this to true but its not working. Even some other events like NewMail, ItemEvents-OnOpen etc has this VARIANT_BOOL parameter, which should cancel the operation if we set it to true. But its not happening.. that line is simply being ignored. Below is my code :- _ATL_FUNC_INFO OnReminderInfo = (CC_STDCALL,VT_EMPTY,1,{VT_BOOL}}; class ATL_NO_VTABLE CAddin : .... .... public IDispEventSimpleImpl5,CAddin, &__uuidof(Outlook::ReminderCollectionEvents { typedef IDispEventSimpleImpl5,CAddin, &__uuidof(Outlook::ReminderCollectionEvents ReminderEvents; BEGIN_SINK_MAP(CAddin) SINK_ENTRY_INFO(5, __uuidof(Outlook::ReminderCollectionEvents), /*dispid*/ 0x0000fa93, OnBeforeReminderShow, &OnReminderInfo) END_SINK_MAP() OnBeforeReminderShow(VARIANT_BOOL* Cancel) { ....... ...... *Cancel = VARIANT_TRUE; // This line is not working.. Has not effect. } } //Code ends... Can you help me on this.. |
All times are GMT +1. The time now is 12:19 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