Article ID: 165490 - Last Review: August 5, 2004 - Revision: 4.1 VB4 16-Bit OLE Clients Receive Error -2147319784This article was previously published under Q165490 On This PageSUMMARY When 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) 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. There 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: 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 files are available for download from the Microsoft Download Center: Vb416fix.exe
(http://download.microsoft.com/download/vb40std/fix/1/win98/en-us/vb416fix.exe)
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
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:
MORE INFORMATION During 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
APPLIES TO
| Article Translations
|
Back to the top
