PRB: E_FAIL Calling QueryInterface from an IUnknown Pointer Obtained from MAPIOBJECTProperty (296483)
The information in this article applies to:
- Microsoft Outlook 98
- Microsoft Outlook 2000
- Microsoft Outlook 2002
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.
Modification Type: | Minor | Last Reviewed: | 3/4/2004 |
---|
Keywords: | kbMsg kbprb KB296483 |
---|
|