DOCUMENT:Q188542 28-AUG-1998 [vbwin] TITLE :PRB: VB 4.0 16-Bit Add-Ins Fail After Installing VB 6.0 PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- 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: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD). Step-by-Step Example -------------------- 1. 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" 2. 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. 3. Save the file as Vb4.reg. 4. Launch Windows Explorer, and double-click the Vb4.reg file. This process updates the system registry. 5. Launch Visual Basic 4.0 16-bit. The Add-Ins now work correctly. STATUS ====== This behavior is by design. 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. Additional query words: kbDSupport kbdss kbvbp600 kbVBp kbRegistry kbAddIn kbVBp400 ====================================================================== Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.