_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!
 
Joined
Jul 18, 2007
Messages
2
Reaction score
0
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.
 

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