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 IDispEventSimpleImpl<5,CAddin, &__uuidof(Outlook::ReminderCollectionEvents> { typedef IDispEventSimpleImpl<5,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..
|
|