Microsoft KB Archive/169534

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

Article ID: 169534

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition

-



This article was previously published under Q169534



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:

' 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
 Open NotePad or any other text editor.  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   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\\    VB5 C:\\Program Files\\               Visual Basic4\\32-bit C:\\Program Files\\              <Your Path to Visual Basic 4.0 16-Bit> Visual Basic4\\16-Bit </li> Save the file as text with a .reg extension, that is, VBFix.reg.</li> Open Microsoft Windows Explorer, locate and double-click the .REG file to register the proper entries in the Windows Registry.</li></ol>

<div class="status_section">

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

<div class="moreinformation_section">

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.

Keywords: kberrmsg kb16bitonly kbprb KB169534

-

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

© Microsoft Corporation. All rights reserved.