View Single Post
  #4  
Old February 27th 09, 06:41 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to specify the "current entry id" to GetItemFromID?

Can you use late binding (IDispatch::GetIDsOfNames/Invoke) to retrieve the
Class property?
What do you see if you run the following script from Outlook Spy (click
"Script Editor" button on the OutlookSpy toolbar, paste the script, click
Run)

BrowseObject(Application.ActiveExplorer.Selection( 1))

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:924f9d529567c@uwe...
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