Tips for working with the VB Upgrade Wizard

To ease the pain of converting line after line after line of Visual Basic 6 code to VB 2005, Microsoft provides developers with the Visual Basic Upgrade. The tools works very well Bill Sempf reported in a March 2006 MSDN article, Deconstructing the Visual Basic Upgrade Wizard -- Sempf reports a 96% line-by-line success rate for the programs he tested.

The wizard, though, is not perfect, and Sempf uses the tip to point out what sort of things won't be able to make the move.

For starters, the Upgrade Wizard does not support ASP to ASP.NET migrations. There's a perfectly good reason why, Sempf said -- the wizard covers VB, and ASP apps are written in VBScript.

In addition, three types of functionality -- data, printing and graphics -- are not updated directly from VB 6, Sempf noted. In the first case, ADO objects are wrapped into something called a Runtime Callable Wrapper. In the second case, the concept of a default printer is moot. In the third case, graphical functionality is moved to a different namespace.

Other possible pitfalls involve Solutions/Projects Groups, whose references should be set up before running the Upgrade Wizard and a couple controls that Sempf said did not upgrade properly.

Read Deconstructing the Visual Basic Upgrade Wizard

More on VB 6 to VB.NET Migration from SearchVB.com

  • Reference: Special Report: VB 6-to-VB.NET Migration
  • Tip: Getting started: Tips for VB6 to VB.NET 2.0 migration
  • RSS: Subscribe to our VB and .NET News Channel

    This was first published in May 2006

  • There are Comments. Add yours.

    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.