Outlook 2003 Beta 2 ItemAdd_Event not triggered properly

  • Thread starter Thread starter Fei Yuan
  • Start date Start date
F

Fei Yuan

Hi Sue,

I'm not concerned with its class property. What I know is that by sending
the first email, itemAdd event from "Sent Items" returns me a __ComObject
that I cannot cast it to a MailItemClass object. Then for subsequent
emails, "Sent Items" returns me regular MailItemClass objects that are fine.

So my questions are: 1. why did the event returns me a __ComObject at the
first time? 2. if i do check its class property, how do I cast it or
convert it to a MailItemClass?


Regards,
- Fei -



--------------------------------------



I did read your question carefully. I would check the Class property of the
item, not just TypeName to try to understand better what might be happening.
AFAIK, this is not a known issue with 2003.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
I don't know the answer to either of your questions. I am trying to find out more information, so that we can understand this issue better. Knowing the value of the Class property would help.

Fei Yuan said:
Hi Sue,

I'm not concerned with its class property. What I know is that by sending
the first email, itemAdd event from "Sent Items" returns me a __ComObject
that I cannot cast it to a MailItemClass object. Then for subsequent
emails, "Sent Items" returns me regular MailItemClass objects that are fine.

So my questions are: 1. why did the event returns me a __ComObject at the
first time? 2. if i do check its class property, how do I cast it or
convert it to a MailItemClass?


Regards,
- Fei -



--------------------------------------



I did read your question carefully. I would check the Class property of the
item, not just TypeName to try to understand better what might be happening.
AFAIK, this is not a known issue with 2003.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
Back
Top