FILE: VB4 16-Bit OLE Clients Receive Error -2147319784Last reviewed: January 16, 1998Article ID: Q165490 |
The information in this article applies to:
SYMPTOMSWhen using an existing 16-bit application compiled with Microsoft Visual Basic version 4.0, the following error message may be displayed if you are working with a Visual Basic 4.0 16-bit-built OLE client:
"OLE Automation Error. -2147319784 (80028018)" CAUSEDuring the installation of Microsoft Office 97 and Microsoft Visual Basic 5.0, updated components and registrations entries may cause the above error message only if you are using early binding and passing Collections from a Visual Basic 4.0 16-bit Automation client to a Visual Basic 4.0 Automation server. The server can be either 16-bit or 32-bit. This applies to any combination of 16-bit / 32-bit collection interaction. This means that the same problem will occur if the collection originates and is passed from a 32-bit application to a 16-bit server as well.
RESOLUTIONThere are two ways to work around this behavior:
Workaround 1 - When Source Code is Available (Best Solution)To work around this behavior when you have the source code available, you can re-write portions of the client that deal with collections to use late binding rather of early binding. For example, a change you would make to the Automation Client is:
instead of: Dim X as Collection use: Dim X as Object Set X = VBA.Collection Workaround 2 - Existing Applications and No Access to Source CodeTo work around this behavior in the situation where an existing, compiled application is affected, certain changes must be made to the Registration Database. These changes force TYPELIB.DLL to use the earlier versions of the type libraries that released with Microsoft Visual Basic 4.0. A registry file has been created by Microsoft that will change the registration automatically. The following file is available for download from the Microsoft Software Library:
~ Vb416fix.exe (size: 15986 bytes)For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online Services Updating an Individual SystemTo update any single system, do the following:
Including the VB416FIX.REG File in New SetupsTo include the VB416FIX.REG file with the other components of a Visual Basic 4.0 16-bit application, you must use the Application Setup Wizard to build the distribution diskettes. Use the following steps:
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONDuring the installation of Microsoft Office 97 and Microsoft Visual Basic 5.0, updated components and registrations entries may cause the above error message only if you are using early binding and passing Collections from a Visual Basic 4.0 16-bit Automation client to a Visual Basic 4.0 Automation server. The server can be either 16-bit or 32-bit. This is limited to Visual Basic 4.0 16-bit built clients that use early binding and pass a Collection to an Automation server.
Steps to Reproduce Behavior
Keywords : kbpatch kbprg kbtool vbwin vb4win vb5all vb4all VBKBAutomation Technology : kbvba Version : WINDOWS:4.0 5.0 Platform : WINDOWS Issue type : kbprb Solution Type : kbfile |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |