The information in this article applies to:
SUMMARYWhen 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: 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 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:
use:
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. Click the file names below to download the files: Vb416fix.exe For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. 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 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
Additional query words:
Keywords : kbfile kbpatch kbprg kbtool kbVBp400 kbVBp500 kbGrpVB VBKBAutomation VB4WIN vbwin |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |