Outlook 2003 Beta 2 ItemAdd_Event not triggered properly

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
 
S

Sue Mosher [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top