PRB: Error 0x80020005 (-2147352571) from IDispatch::Invoke() (175617)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • the operating system: Microsoft Windows 95

This article was previously published under Q175617

REFERENCES

Win32 SDK online documentation: IDispatch::Invoke(); Passing Parameters section

SYMPTOMS

You get the error DISP_E_TYPEMISMATCH when using IDispatch::Invoke().

CAUSE

The obvious cause for the error would be that you are passing the wrong type to a method. You should consult the documentation to determine if you are passing the correct type to a method.

This error may also occur when you pass multiple arguments. The arguments should be passed in reverse order. In other words, the first element of your VARIANT array in your DISPPARAMS structure should be the last parameter you want to pass.

RESOLUTION

Reverse the order of arguments in your DISPPARAMS structure.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kberrmsg kbprb KB175617