Migrating from VB6 to VB.NET with Project Analyzer
Project Analyzer reviews classic VB6 code for upgrade incompatibilities with Visual Basic .NET. Review compatibility issues and fix them before migrating your code to VB.NET. This feature is part of the Enterprise Edition.
Get prepared and save migration work
Planning to move code from VB6 to VB.NET? Get ready for a challenge! Upgrading to VB.NET is not just a matter of loading your existing code in it. Simply put, your code won't run without changes. It's essential to prepare your code before you migrate it.
You can easily start the preparations today. It makes sense to write .NET compatible code even if you're planning to stay in VB6 for a while.
Read more: 10 Steps to migrate existing code to VB.NET
Project Analyzer helps you migrate
The Enterprise Edition of Project Analyzer provides several tools that help you prepare your existing code for VB.NET. Among the most useful features are automatic dead code removal and VB.NET Compatibility Check.
- Verify your projects are upgradable. It's not possible or sensible to upgrade certain project or file types.
- Evaluate the upgrade work. Find out what you need to change.
- Remove dead code to save your efforts. You don't want to spend any time migrating those pieces that aren't being called anyway.
- Prepare data declarations and syntax. Fix your form design. Plan the data structures.
Problem categories detected by VB.NET Compatibility Check
The VB.NET Compatibility Check feature analyzes your existing Visual Basic code to find features and syntax conventions that have changed in VB.NET. When it finds an incompatibility, it marks the location with a problem icon in one of the following categories.
- Feature not upgradable. VB.NET doesn't support this feature. You should either consider leaving the code in your current Visual Basic version, or prepare for major upgrade work. Example: web programming.
- Fix required before upgrade. You can't upgrade this feature as is. You will have to rewrite your code before you upgrade to VB.NET. Example: data binding, conditional compilation.
- Fix recommended before upgrade. You will save work if you adjust your code or forms before you upgrade. Example: correct declaration of variables and class members.
- Can be fixed before or after upgrade. The code needs to be changed. You may do it now or after the upgrade. Example: explicit declaration of procedure parameters.
- Work required after upgrade. The code needs to be reviewed or changed, but you can't do it before the upgrade. Example: syntax changes, changes in control object models, unsupported functions requiring complete redesign where used.
List of VB.NET compatibility issues
Download and try it now for free
Download the Project Analyzer demo. Open the Options menu, select Problem Options and enable a VB.NET related problem filter. Take a peek in the Enterprise menu to see a compatibility report.
Independent reviews
If you are preparing your VB6 apps for migration to .NET this tool is also very helpful, because it can automatically spot most VB6 language elements that the Update Wizard doesn't convert correctly to VB.NET.
Francesco Balena
If you first use Project Analyzer to detect .Net incompatibilities in your Visual Basic 6 program and then fix them, you are likely to have better results when you run the migration wizard.
Peter Aitken at DevSource.com