Select the product you need help with
PRB: E_FAIL Calling QueryInterface from an IUnknown Pointer Obtained from MAPIOBJECTPropertyArticle ID: 296483 - View products that this article applies to. This article was previously published under Q296483 SYMPTOMS
When you query for a specific MAPI interface by using a pointer that you obtained from an Outlook object's MAPIOBJECT property, you may receive the following error message:
0x80004005 (E_FAIL)
CAUSE
The MAPIOBJECT property is available only for compatibility with Microsoft Collaboration Data Objects (CDO) 1.21. It is a hidden property of Outlook Object Model objects, and is not meant to be used from the Outlook object. The MAPIOBJECT property is meant to be used from the corresponding CDO object.
RESOLUTION
To use the MAPIOBJECT property, use CDO to obtain it from the corresponding CDO object.
STATUSThis behavior is by design. MORE INFORMATION
The following code sample uses the Outlook Object Model to demonstrate the problem:
Properties |


Back to the top








