Bug in MSO-2003 or in my code ?

  • Thread starter Thread starter mathieu.lemay
  • Start date Start date
M

mathieu.lemay

Hi,

I have a weird problem with UserProperties of Oulook 2003. The first
time that an email is opening, I add a new UserProperty and I save it.
If I close, and open and close and open and so on the email (which
contains my UserProperty), I can find my property at the opening of
the email. If I verify the number of UserProperty (with UserProperties-
get_count fct), my property is there and I'm able to find it with the
find function. Also, I can see the property in the column (field) that
I display.

However, if I display another email or I click on the email group
namebar (ex : "Date:Today", where we can expand or collaps a group of
emails) so that the email disappears from the reading pane, the
UserProperties returns no UserProperty ( UserProperties->get_count
return 0 ) at the opening of the email when I re-open it. But my
UserProperty has been save before closing the email and I can see the
value of my UserProperty in the current view.

The question is Why ??? This is a setting of my Outlook, a bug in
Outlook or it's a bug in my code ? I'm developping a COM add-in in C++
and I use the CDO function to get and set UserProperty.

I don't know if my explanations are comprehensible, I've some
difficulties to explain the problem.

Thank.
Mathieu
 
I found the solution for my problem.... I have to pass by the MAPI ! I
don't know why, but the CDO doesn't work !
 
Back
Top