Upgrading from Earlier Versions of Visual Basic

Upgrading from Earlier Versions of Visual Basic

We ve talked about Visual Basic 6. What about backward compatibility with versions 5 and earlier of Visual Basic? The answer is simple. If you are upgrading any projects from Visual Basic 5 and earlier, you re on your own. The Upgrade Wizard only supports upgrading Visual Basic 6 projects. Interestingly, the format of Visual Basic 5 and Visual Basic 6 projects is virtually identical. Although the Upgrade Wizard does understand and will attempt to upgrade Visual Basic 5 projects, this is not a supported scenario some Visual Basic 5 ActiveX controls will not work in Visual Basic .NET. The Upgrade Wizard team has focused solely on testing for Visual Basic 6 projects. If the Upgrade Wizard works well with your Visual Basic 5 project, consider it a bonus. Not everyone will be so lucky.

While it is possible to open Visual Basic 5 projects with the Upgrade Wizard, converting them to Visual Basic 6 first can make the move much easier. To do this, open the Visual Basic 5 project in Visual Basic 6, choosing the Update Controls option. This changes all of your controls to Visual Basic 6 controls (if they are available). Making this step also means that the Upgrade Wizard will generate better and more predictable results.

For projects older than Visual Basic 5, the best option is to upgrade them to Visual Basic 6 first. When you have them working, use the Upgrade Wizard to upgrade the Visual Basic 6 version of the project to Visual Basic .NET.



Upgrading Microsoft Visual Basic 6.0to Microsoft Visual Basic  .NET
Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET w/accompanying CD-ROM
ISBN: 073561587X
EAN: 2147483647
Year: 2001
Pages: 179

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net