GetItemFromID returns MAPI_E_INVALID_ENTRYID,

Hi, I am developing plugin using unmanaged code, when i use GetItemFromID it returns MAPI_E_INVALID_ENTRYID,

below is code snippet:

CComBSTR storeID;

CComVariant vStore;
CComPtr<IDispatch> pItemDisp;
CComQIPtr<Outlook::_MailItem> pMailItem;

hr = pStore->get_StoreID(&storeID);

vStore = storeID;

hr = pNameSpace->GetItemFromID(bstrEntryID, vStore, &pItemDisp);

What can i do to resolve this issue.

your revert is welcome

July 23rd, 2015 3:11am

Hi,

I noticed the issue is code related. And this forum focuses on some general discussion about Office 2010. I suggest we can ask a question in Outlook Development forum for more help:

http://social.msdn.microsoft.com/Forums/en-US/outlookdev

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

Regards,

Free Windows Admin Tool Kit Click here and download it now
July 26th, 2015 9:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics