Microsoft KB Archive/885280

= FIX: Application fails because MSXML 3.0 SP5 changes dispatch IDs for the IXMLDOMSchemaCollection interface =

Article ID: 885280

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft XML Parser 3.0

-







SUMMARY
''When an application uses early-bound COM IDispatch object dispatch IDs (DispIDs) for the MSXML 3.0 IXMLDOMSchemaCollection interface when MSXML 3.0 Service Pack 5 (SP5) is installed, the application fails.

The problem occurs because MSXML 3.0 SP5 changed dispatch IDs for methods in the IXMLDOMSchemaCollection interface.

You can resolve this problem by applying the hotfix, or you can work around the problem by rewriting the application so that it does not use early-bound dispatch IDs.''



SYMPTOMS
An application that uses early-bound COM IDispatch object dispatch IDs (DispIDs) for the MSXML 3.0 IXMLDOMSchemaCollection interface fails when MSXML 3.0 Service Pack 5 (SP5) is installed on the computer.



CAUSE
MSXML 3.0 SP5 changed the following IDispatch object dispatch IDs for the following methods of the IXMLDOMSchemaCollection interface:

Any application that is compiled with early-bound dispatch IDs for the MSXML 3.0 IXMLDOMSchemaCollection interface calls the wrong method because MSXML 3.0 SP5 has changed the method values. Typically, this behavior causes the application to fail because the arguments to the function and to the returned result are incorrect.



Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
You must install MSXML 3.0 SP5 on your computer before you apply the hotfix. To download MSXML 3.0 SP5, visit the following Microsoft Download Center Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=4a3ad088-a893-4f0b-a932-5e024e74519f&DisplayLang=en

Restart information
You do not have to restart your computer after you apply this hotfix.

Hotfix file information
This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date      Time   Version      Size   File name --  02-Sep-2004  22:10  8.50.2163.0     1,189,888  Msxml3.dll Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.



WORKAROUND
To work around this problem, rewrite the application so that it does not use early-bound dispatch IDs.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
Most of the applications that use MSXML 3.0 are not affected by this dispatch ID change. Most MSXML 3.0 applications either call the GetIdsOfNames method to dynamically determine the dispatch ID of the interface method at runtime, or they bind directly to the MSXML 3.0 COM interfaces.

Applications that call the GetIdsOfNames method to obtain the dispatch ID of the method at runtime are not affected. For example, using MSXML 3.0 inside an ASP page or inside Visual Basic script will not be affected by this change. This is because all scripting languages use the GetIdsOfNames method to obtain the dispatch ID of the method at runtime. Similarly, applications that bind directly to the MSXML 3.0 COM interfaces are not affected. For example Visual Basic applications that use early binding with MSXML 3.0 and C++ applications that use direct COM interface pointers with MSXML 3.0 are not affected. Only applications that are compiled with early-bound dispatch IDs for the MSXML 3.0 IXMLDOMSchemaCollection interface are affected by this change.

Additional query words: dispatch ids

Keywords: kbqfe kbhotfixserver kbbug kbfix KB885280

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.