View Single Post
  #3  
Old February 27th 09, 02:03 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default How to specify the "current entry id" to GetItemFromID?

I'm sorry, i typed wrong word, it is not "current" but "correct". My purpose
is just to retrieve the MailItem from the pass-in paramater (BSTR entryid).
But the GetItemFormID return NULL if e-mail's encrypted.
Yes, i tried to get a generic IDispatch from GetItemFromID, it's OK, but i
have no idea what could i do with the gotten IDispatch pointer. Again, my
purpose is to get encrypted e-mail's MailItem so that i can operate the e-
mail easily. Any ideas? TIA.


Dmitry Streblechenko wrote:
I am not sure what you mean by "current entry id".
What are you trying to solve? Null being retruned from GetItemFromID?
Did you try to declare NewMailItem as a generic IDispatch in case you have
something other than MailItem?

Hi, Dmitry, Thank you for your help. This is not a new problem, but
unsolved

[quoted text clipped - 18 lines]
there a way to make it 'current' and then pass to GetItemFromID to get the
_MailItemPtr even it is encrypted Mail item??


--
Message posted via http://www.officekb.com

Ads