View Single Post
  #3  
Old August 25th 07, 02:14 AM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins
Mark Beiley
external usenet poster
 
Posts: 22
Default setting 'AllDayEvent' causes an exception ?

Hi Dmitry,

I don't see any error message... I have this in a try/catch block and
Outlook throws an exception when I try and set AllDayEvent. My code looks
like this:

try
{
olAppt-AllDayEvent = 0;
}
catch(...)
{
// do some error logging...
}

I'm writing my add-in in C++. Is there some way I can get some sort of
error message from Outlook? I really have no indication of 'why' it is
failing, I just know where it fails.


Thanks,
Mark
--
Beiley Software
http://www.beiley.com



"Dmitry Streblechenko" wrote in message
...
And what is the exact error message?

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

"Mark Beiley" nowhere AT donotuse.com wrote in message
...
I have an add-in that is modifying the properties of a calendar event.
When it gets he

olAppt-AllDayEvent = 0;

Outlook is throwing an exception. This code works fine on most events,
but on some events this will fail. Any ideas why this would fail? Is
there some other property I need to make sure to set first or something?

Thanks,
Mark
--
Beiley Software
http://www.beiley.com





Ads