Microsoft Knowledge Base Email Alertz

(172108) - This article describes some common causes of the OLE Automation error - 2147352573 (80020003 hex) and suggested troubleshooting steps. The error may be shown as DISP_E_MEMBERNOTFOUND.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

HOWTO: Troubleshoot "Member Not Found" 0x80020003 Error

Article ID: 172108 - View products that this article applies to.
This article was previously published under Q172108

On This Page

SUMMARY

This article describes some common causes of the OLE Automation error - 2147352573 (80020003 hex) and suggested troubleshooting steps.

The error may be shown as DISP_E_MEMBERNOTFOUND.

MORE INFORMATION

Cause 1

You are calling IDispatch::Invoke() with wFlags set only to DISPATCH_METHOD and the dispid identifies a property.

Resolution 1

The Win32 SDK documentation for IDispatch::Invoke() states that if the dispid represents a property, you must also set the DISPATCH_PROPERTYGET flag. This problem commonly occurs when you use Microsoft Visual C++ to generate class wrappers from the Microsoft Office 95 type libraries. You have to explicitly modify the generated .cpp file for any InvokeHelper() call that retrieves a property to use the DISPATCH_PROPERTGET flag. If you use the Microsoft Office 97 type libraries, this is done automatically by the Microsoft Visual C++ Class Wizard.

Cause 2

You are using the wrong IDispatch pointer.

Resolution 2

This typically occurs when you use OLE Automation with the Microsoft Office 97 applications, or any application that has a hierarchical object model. You may have initialized a COleDispatchDriver class, representing an object X, with the IDispatch pointer for an object Y. This error may or may not occur with Microsoft Office 95, or other applications with only one IDispatch implementation. This is because object X and object Y could both be implemented through one IDispatch interface, and thus no conflict will occur.

Cause 3

You are using an invalid dispid.

Resolution 3

The server does not recognize the dispid you have specified in the call to IDispatch::Invoke(). Verify that this is the correct dispid, possibly through IDispatch::GetIDsOfNames().

REFERENCES

For more information on IDispatch or OLE Automation, read Tech note TN039 "MFC/OLE Automation Implementation."

For more information on type libraries and how to use them with Microsoft Visual C++, see:

Microsoft Win32 Software Development Kit Help; search on: "type libraries, importing with ClassWizard".

For additional information, please see the following article in the Microsoft Knowledge Base:

165273 BUG: XL97 Errors Using OLE Automation

Properties

Article ID: 172108 - Last Review: July 11, 2005 - Revision: 1.3
APPLIES TO
  • Microsoft Platform Software Development Kit-January 2000 Edition
Keywords: 
kbhowto kbfaq KB172108
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate