Microsoft KB Archive/188542

= PRB: VB 4.0 16-Bit Add-Ins Fail After Installing VB 6.0 =

Article ID: 188542

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q188542



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.



SYMPTOMS
After installing Visual Basic 6.0 you will receive the following error when using Visual Basic 4.0 16-bit:

 could not be loaded. Remove it from the list of available Add-Ins?



CAUSE
Visual Basic 6.0 changes some of the registry settings that Visual Basic 4.0 16-bit uses.



RESOLUTION
Update the Windows Registry to enable Visual Basic 6.0 and Visual Basic 4.0 16-bit to work together on the same development system.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Step-by-Step Example
 Copy and paste the below text into a text file:

REGEDIT4

[HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\99.0]

[HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF- 00DD010F7EBB}\99.0\0]

[HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF- 00DD010F7EBB}\99.0\0\win16] @="C:\\VB\\vbext.olb"

 Modify the "C:\\VB\\vbext.olb" line above to point to the location where Visual Basic 4.0 16-bit was installed on your system.

NOTE: Make sure to press ENTER on the last line of the text file before saving in the next step, or Regedit may not enter the last registry entry above during step 4. Save the file as Vb4.reg. Launch Windows Explorer, and double-click the Vb4.reg file. This process updates the system registry. Launch Visual Basic 4.0 16-bit. The Add-Ins now work correctly.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

MORE INFORMATION
You receive the error message listed above in one of two ways within the Visual Basic 4.0 16-bit environment:


 * When you launch Visual Basic 4.0 16-bit, and you have at least 1 Add-In selected to load.
 * When you attempt to add an Add-In module to Visual Basic 4.0 through the Add-In Manager.

Keywords: kbregistry kbaddin kbprb KB188542

-

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

© Microsoft Corporation. All rights reserved.