PRB: VB 4.0 16-Bit Add-ins Fail After Installing VB 5.0

ID: Q169534


The information in this article applies to:
  • Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0
  • Microsoft Visual Basic Professional and Enterprise Editions, 16-bit only, for Windows, version 4.0


SYMPTOMS

When you try to access Microsoft Visual Basic 4.0 16-bit Add-Ins after you have installed Microsoft Visual Basic 5.0, the following error message to appears:

<Name of Add-In>' could not be loaded.
Remove it from the list of available Add-Ins?


CAUSE

This problem occurs because the new type information installed by Microsoft Visual Basic 5.0 is unreadable by 16-bit Microsoft Visual Basic 4.0.


RESOLUTION

Register a .reg file, such as the one included below, to work around this problem.

Step By Step Example

  1. Open NotePad or any other text editor.


  2. Copy the following .REG file information into the new document.

    IMPORTANT NOTE: Due to the width constraints imposed by this article's format, the underscore character ("_") is used as a line continuation character when it appears at the end of a line. When the information below is copied into a text editor, the underscores at the end of the lines should be deleted and the lines which follow the underscores should be appended to the end of those lines. There are no leading or trailing spaces. For example, a line such as:
    
          [HKEY_CLASSES_ROOT\TypeLib\_
          {EF404E00-EDA6-101A-8DAF-00DD010F7EBB} 
    Should be interpreted as:
    
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB} 
    Now copy the following information into your text editor:
    
          REGEDIT4
    
          ; Main Visual Basic 5.0/Visual Basic 4.0 IDE Extensibility
          ; Typelib Key.
          ;
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}]
    
          ; Visual Basic 4.0 Sub-Keys.
          ; Information on 32-bit Visual Basic 4.0 below is important to keep
          ; if it is also installed on the machine. It is not necessary
          ; otherwise.
          ;
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-
          00DD010F7EBB}\4.0]
          @="Microsoft Visual Basic 4.0 Development Environment"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\4.0\0]
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}_
              \4.0\0\win16]
          @="C:\\Program Files\\Visual Basic4\\16-bit\\vbext.olb"
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}_
              \4.0\0\win32]
          @="C:\\Program Files\\Visual Basic4\\32-bit\\vbext32.olb"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\4.0\FLAGS]
          @="0"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\4.0\HELPDIR]
          @="C:\\Program Files\\Visual Basic4\\16-bit"
    
          ; Visual Basic 5.0 Sub-Keys.
          ;
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\5.0]
          @="Microsoft Visual Basic 5.0 Extensibility"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\5.0\0]
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}_
              \5.0\0\win16]
          @="C:\\Program Files\\Visual Basic4\\16-bit\\VBEXT.OLB"
          HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\5.0\0\win32]
          @="C:\\Program Files\\DevStudio\\VB5\\VB5EXT.OLB"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\5.0\FLAGS]
          @="0"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\5.0\HELPDIR]
          @="C:\\Program Files\\DevStudio\\VB5"
    
          ; Additional Visual Basic 4.0 Sub-Key.
          ; Because this is the highest version, the 16-bit IDE will use it.
          ; Information on 32-bit Visual Basic 4.0 below is important to keep
          ; if it is also installed on the machine. It is not necessary
          ; otherwise.
          ;
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\99.0]
          @="Microsoft Visual Basic 4.0 Development Environment"
          [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:\\Program Files\\Visual Basic4\\16-bit\\vbext.olb"
          [HKEY_CLASSES_ROOT\TypeLib\{EF404E00-EDA6-101A-8DAF-00DD010F7EBB}_
              \99.0\0\win32]
          @="C:\\Program Files\\Visual Basic4\\32-bit\\vbext32.olb"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\99.0\FLAGS]
          @="0"
          [HKEY_CLASSES_ROOT\TypeLib\_
             {EF404E00-EDA6-101A-8DAF-00DD010F7EBB}\99.0\HELPDIR]
          @="C:\\Program Files\\Visual Basic4\\16-bit"
    
          ;End Reg File 


  3. You must replace all occurrences of the following text strings within the document with the correct path strings. Make sure that you use the double back slash "\\" to delimit each folder.
    
       Replace This                      With This
       ------------------------------------------------------------------------
       C:\\Program Files\\DevStudio\\    <Your Path to Visual Basic 5.0>
          VB5
       C:\\Program Files\\               <Your Path to Visual Basic 4.0 32-Bit>
          Visual Basic4\\32-bit
       C:\\Program Files\\               <Your Path to Visual Basic 4.0 16-Bit>
          Visual Basic4\\16-Bit 


  4. Save the file as text with a .reg extension, that is, VBFix.reg.


  5. Open Microsoft Windows Explorer, locate and double-click the .REG file to register the proper entries in the Windows Registry.



STATUS

Microsoft is researching this problem and will post more information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Behavior

  1. On a machine with 16-bit Microsoft Visual Basic 4.0 installed, install an edition of Microsoft Visual Basic 5.0.


  2. Start 16-bit Visual Basic 4.0.


  3. Select Add-In Manager from the Add-Ins Menu.


  4. Select any Add-In by selecting its check box.


  5. Click OK. The error occurs.


Additional query words:

Keywords : kberrmsg kb16bitonly kbVBp400 kbVBp500 kbGrpVB VB4WIN VBKBAddIn VBKBEnv VBKBRegistry VBKBVB
Version : WINDOWS:4.0,5.0;
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.