The information in this article applies to:
SYMPTOMSAn Automation client that successfully automated an Office 97 application crashes with the same Office 97 application after the program is recompiled using an Office 2000 type library. You might receive an error similar to one of the following: -or-
CAUSEThe Office 2000 application has a new member that functionally replaces an Office 97 member with the same name (which is still in the Office 2000 application, but is hidden.) If your automation controller uses early binding and, more specifically, vtable binding, then the entry in the vtable points to the binary implementation of the revised method. Because the new implementation is not in the Office 97 application, the call fails. RESOLUTIONTo work around this problem:
-or- Note for Access Automation ClientsIf you are developing an Automation client for both Microsoft Access 97 and 2000, you should not use early binding: late binding is recommended. The Access 2000 object model was modified such that it breaks both binary (vtable) and dispid compatibility. Any client application that uses early or dispid binding to Access 97 might fail to work properly when run against Access 2000.See the "References" section below for more information. STATUSThis behavior is by design. MORE INFORMATIONEarly-bound code, such as the following, which you might find in an Automation client for Microsoft Word, illustrates the problem:
The Add method of the Documents object is enhanced for Word 2000 and now has more arguments than did the Word 97 Add method. Early binding to the vtable member finds the new member in Word 2000. Because the vtable pointer does not find that member with Word 97, the Add method fails.To correct the problem, you can either:
-or-
REFERENCESFor more information about binding in Visual Basic, please see the following article in the Microsoft Knowledge Base: For more information, please see the following article in the Microsoft Knowledge Base:Q245115 INFO: Using Early Binding and Late Binding in Automation Q246237 BUG: Access 2000 Object Model Breaks Binary Compatibility Additional query words: crash automate excel word access powerpoint -2147417851 80010105
Keywords : kbAccess kbAutomation kbExcel kbPowerPt kbWord kbGrpDSO kbDSupport |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |