Microsoft KB Archive/169979

{|
 * width="100%"|

INFO: Visual Basic 5.0 Frequently Asked Questions (FAQ)

 * }

ID: Q169979

-

The information in this article applies to:


 * Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0

-

SUMMARY
This article answers the Frequently Asked Questions (FAQ) about Visual Basic 5.0.

MORE INFORMATION

 * 1) I would like to install Visual Basic 5.0 on the same computer on that I do Visual Basic 4.0 development. Are they compatible?
 * 2) Can Visual Basic 4.0- and 5.0-built applications and components be deployed on the same system without conflict?
 * 3) Why am I receiving the following error "License Information for This Component Not Found" when attempting to use some ActiveX Controls?
 * 4) What is the latest Service Pack Release for Visual Basic 5.0?
 * 5) Can I develop 16-bit Windows applications with Visual Basic 5.0?
 * 6) Where is RegClean (RegCln.Exe)?
 * 7) Every time I start Visual Basic, it crashes. What can I do?
 * 8) Every time I exit the Visual Basic development environment, I experience a crash. What can I do about it?
 * 9) Why doesn't Visual Basic 5.0 come with ActiveX Data Objects (ADO)?
 * 10) What ActiveX Controls ship with Visual Basic 5.0?
 * 11) What is Project and Binary Compatibility?
 * 12) Why do I get the message "Internet Explorer is opening file of unknown type: .VBD" when trying to access my ActiveX Document?
 * 13) I want to use toolbars and menus such as the ones in the Visual Basic 5.0 IDE within my own applications. How can I do this?
 * 14) I want to use toolbars such as the ones in Internet Explorer within my own Visual Basic applications. How can I do this?
 * 15) If I compile to "Native Code," do I have to distribute the Visual Basic 5.0 virtual machine MSVBVM50.dll with my application or component?
 * 16) Do Visual Basic 4.0 add-ins work with Visual Basic 5.0?
 * 17) What are the differences between the Visual Basic 5.0 Control Creation, Learning, Professional, and Enterprise editions?
 * 18) What product support offerings are available for Visual Basic 5.0?

Questions and Answers
 Q. I would like to install Visual Basic 5.0 on the same computer that I do Visual Basic 4.0 development on. Are they compatible?

A. For the most part, the two environments are compatible. However, there are some issues that you should be aware of before trying this. For instance, Visual Basic 5.0 controls such as ComCtl32.ocx were re- built in Visual Basic 5.0 using a faster and lighter framework. These newer versions of the controls can read the persisted properties of the Visual Basic 4.0 versions. However, the Visual Basic 4.0 versions cannot read the persisted properties of the Visual Basic 5.0 control. This can affect shared development if one developer upgrades to the Visual Basic 5.0 version of a control while the others still have the Visual Basic 4.0 version. If the developer with the Visual Basic 5.0 version of the control checks in a change to a form, the other developers will not be able to load the form. The newer versions of the controls also have different dependencies than the Visual Basic 4.0 versions of the same controls. The Visual Basic 4.0 Setup Wizard does not know how to distribute the new dependencies. So, if you use the Visual Basic 4.0 Setup Wizard without modification, your setup program is likely to fail on a clean computer. For more information on these and other issues, see the following Microsoft Knowledge Base article: Q. Can Visual Basic 4.0- and 5.0-built applications and components be deployed on the same system without conflict?

A. Yes, Visual Basic 5.0-built applications and components were designed to be compatible with Visual Basic 4.0-built applications and components. See the following Microsoft Knowledge Base article for more information on compatibility: Q. Why am I receiving the following error "License Information for This Component Not Found" when attempting to use some ActiveX Controls?

A. There may be many ActiveX controls installed onto your system; in order to use ActiveX controls in the Visual Basic design environment you need to have a license for that control. For the controls that ship with your version of Visual Basic these licenses should be installed. However, when a control is installed for run-time use only (such as those installed by an application created with Visual Basic), and Visual Basic is installed afterwards, if the existing control is of equal or higher version than that from the CD, the license key for that control is not updated. As a result, the above error occurs. To resolve this issue, please see the following Microsoft Knowledge Base articles: Q. What is the latest Service Pack Release for Visual Basic 5.0?

A. Microsoft releases Service Packs to provide bug fixes and address other issues that have been discovered since a product's release. The latest Service Pack release for Visual Basic is Service Pack 3. For the latest information regarding this and other service pack releases for Visual Basic, please see the following Web address; Q. Can I develop 16-bit Windows applications with Visual Basic 5.0?

A. No. Visual Basic 5.0 is a 32-bit-only product. If you would like to develop 16-bit applications with Visual Basic you would need to use Visual Basic 4.0 for 16-bit Windows Development. Q. Where is RegClean (RegCln.Exe)?

A. RegClean is a Windows Registry Analysis and Correction Utility, which used to ship with Visual Basic 4.0. It cannot be found on the Visual Basic 5.0 CD-ROM. The RegClean utility was removed from the Visual Basic product. It is now being distributed as a downloadable utility. In order to obtain the latest version of RegClean, please see the following Microsoft Knowledge Base article: Q. Every time I start Visual Basic, it crashes. What can I do?

A. This problem may be caused by faulty Visual Basic 4.0 add-ins or invalid command bar configuration information in the system registry. This issue was resolved with Service Pack 2 and is also resolved in Service Pack 3. For more information regarding this issue, please see the following Microsoft Knowledge Base article: Q. Every time I exit the Visual Basic development environment, I experience a crash. What can I do about it?

A. There is a known problem in Visual Basic 5.0 related to how it shuts down Microsoft Office Command Bars. This problem usually shows up after installing add-ins. This problem is resolved in both Service Pack 2 and Service Pack 3. For more information regarding this problem, please see the following Microsoft Knowledge Base article:</li> Q. Why doesn't Visual Basic 5.0 come with ActiveX Data Objects (ADO)?

A. ActiveX Data Objects (ADO) is a new technology that was not ready in time to be included with the Visual Basic 5.0 product. However, you can use ADO from Visual Basic 5.0. To download the most current MDAC components which include the ADO components, visit the Microsoft Universal Data Access web site:</li> Q. What ActiveX Controls ship with Visual Basic 5.0?

A. You must include the Microsoft Data Access Components (MDAC_typ.exe) in your distribution. You can get the latest version of MDAC_typ.exe from the Microsoft Universal Data Access Web site:</li> Q. What is Project and Binary Compatibility?

A. The ActiveX components you create with Visual Basic are given a unique identifier. Client applications use this unique identifier to locate and use your ActiveX components. If this unique identifier changes, your components will fail when attempting to create an instance of your ActiveX components. To ensure that your ActiveX component maintains its unique identifier, you need to set the appropriate Compatibility setting. For more information regarding the different Compatibility settings, please see the following Microsoft Knowledge Base article:</li> Q. Why do I get the message "Internet Explorer is opening file of unknown type: <Name of Document>.VBD" when trying to access my ActiveX Document?

A. There are several reasons for this error message; you are using the wrong .vbd file or you are using an out-dated .vbd file, ACTXPRXY.dll is missing or is not registered properly, the ActiveX EXE/DLL is not registered properly, the Visual Basic virtual machine is not installed or on the path, the ActiveX Document may not be signed or safe for scripting, a run-time error exists in your initialization code, CAB files are not being downloaded, or you have other problems not listed here. See the following Microsoft Knowledge Base article for the latest information on the causes of this message and ways to avoid it:</li> Q. I want to use toolbars and menus such as the ones in the Visual Basic 5.0 IDE within my own applications. How can I do this?

A. The Visual Basic development environment uses Microsoft Office Command Bars for the toolbars and menus. Currently, this is a proprietary technology that you cannot use in your applications. However, there are third-party companies that have ActiveX controls that look and feel the same as Microsoft Office Command Bars.</li> Q. I want to use toolbars such as the ones in Internet Explorer within my own Visual Basic applications. How can I do this?

A. The Visual Basic Owner's site contains two self-extracting files to help you create a toolbar similar to the toolbar used in Internet Explorer 3.0. For more information, please see the following Microsoft Knowledge Base article:</li> Q. If I compile to "Native Code," do I have to distribute the Visual Basic 5.0 virtual machine MSVBVM50.DLL with my application or component?

A. Yes. All Visual Basic 5.0-built applications and components require MSVBVM50.dll regardless of whether they are compiled to "Native Code" or "P-Code." The Visual Basic 5.0 virtual machine contains all of the functionality for Visual Basic 5.0 forms, class modules, language, etc. Many people confuse compiled "Native Code" with static linking. Compiled "Native Code" is code that does not have to be interpreted at run-time and can be directly executed by the system processor. Static linking is the process of linking libraries of functions into a single .exe. Visual Basic 5.0 "Native Code" applications and components can be directly executed by the system processor but they must still call into the Visual Basic 5.0 virtual machine to access the functions providing Visual Basic 5.0 features.</li> Q. Do Visual Basic 4.0 add-ins work with Visual Basic 5.0?

A. Major changes were made to the development environment to allow for multiple project development. The Visual Basic product team made every effort to allow Visual Basic 4.0 add-ins to continue to work in the new environment. However, they were not able to make Visual Basic 5.0 100 percent compatible with Visual Basic 4.0 add-ins. In some cases, you may need to re-write an add-in for Visual Basic 5.0 or contact a third- party company for an updated add-in.</li>  Q. What are the differences between the Visual Basic 5.0 Control Creation, Learning, Professional, and Enterprise editions?

A. The primary difference between each edition are the features available, the following web site addresses these key differences: "http://www.microsoft.com/vbasic/prodinfo" The core development environment is the same for each version of Visual Basic 5. Below is a brief description of each edition.

Control Creation
The Control Creation Edition is available for free from the Microsoft Web site. The Control Creation edition is designed to assist developers in creating fast, powerful ActiveX controls. ActiveX control creation is the sole purpose of this edition. To download it for free, visit the following Web site: "http://msdn.microsoft.com/downloads/tools/visualbasic/vbcce.asp works"

Learning
The Learning edition is designed for novice users of Visual Basic. It provides an environment with the basic functionality and features of Visual Basic ideal for learning.

Professional
The Professional edition includes some of the advanced Visual Basic features for creating efficient, fast, and flexible end-user solutions.

Enterprise
The Enterprise edition integrates all of the tools and support systems needed for successful enterprise application development, deployment, debugging, tuning and support. </li>  Q. What product support offerings are available for Visual Basic 5.0?

A. For more information on your support options for this product, please refer to Support Options by Product online at: "http://support.microsoft.com/directory/overview.asp"</li></ol>

Additional query words: kbdss

Keywords : kbADO kbMDAC kbVBp400 kbVBp500 kbVS97sp3 kbGrpVB kbfaq kbGrpVBDB kbDSupport kbMDACNoSweep

Version : :5.0

Platform :

Issue type : kbinfo

Technology :