View Single Post
  #3  
Old February 23rd 06, 02:59 PM posted to microsoft.public.outlook.program_addins
blueturtle@walla.co.il
external usenet poster
 
Posts: 3
Default Handling Outlook COM exceptions in .Net

Hi,
Thanks for your reply.

Using "Restrict" was just a sample how to cause an exception.
It can be seen also on "Outlook.Recipient.FreeBusy" and
"Attachments.Add".
The issue is that in COM, the practice is to compare the HRESULT value
against a list of known numeric values (or test certain bits)
but here, the numeric value seem to be random, and only the description
is the same (at least it's prolog).

As for your comments, this syntax of the filter seems to work fine so
far.
The date element was enclosed with "#", to avoid any ambiguity as
whether 7/4 is July's 4th, or April's 7th.
I didn't find any documentation about the compatibility of the syntax
among OS with different cultures used, so I used this one, which seems
to work.

Itzik.

Ads