_MailItem and ItemSend

Joined
Jul 18, 2007
Messages
2
Reaction score
0
Hi All,

My ItemSend signature looks like this:
void __stdcall CAddin::OnItemSend(IDispatch* item, VARIANT_BOOL* cancel)

How can I translate the item parameter into a _MailItem variable?
I've tried
_MailItemPtr item(item);

but it didn't work.

Please help :)

Thanks!
 
Wrong code snippet

The reason it didn't work isn't because of the duplicity of variable "item". I just had a mistake copying:

_MailItemPtr ptr(item)

that's the correct line.

Thanks again.
 
Back
Top