advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Federico Zoufaly: Co-founder, Vice President, Microsoft Technologies
How much time have you spent thinking seriously about your migration needs? Have you had a formal review and analysis of the pros and cons of migration for individual applications in use at your company? When all is said and done, how many lines of VB6 code (ballpark estimate) do you expect to migrate to .NET? Tell us what you think in the talk.editors.devx discussion group.
Partners & Affiliates
advertisement
advertisement
advertisement
Average Rating: 2.5/5 | Rate this item | 2 users have rated this item.
Email this articleEmail this article
 
Abandoning the Fantasy of VB Migration Wizardry
So how hard is it really to upgrade a VB6 application to VB.NET? Harder than you think. Get a realistic appraisal of what's involved in migration from Federico Zoufaly, the man at the center of the .NET migration universe.  

advertisement
or all the functional enhancements that .NET brings to a developer's world and the excitement one might be feeling about putting these advances into practice, the truth is that this is not exactly a golden age for Visual Basic 6 developers. If you have a significant VB6 code base that you might like to bring to the .NET platform, the next year to two years promises to bring you a measure of pain the likes of which you've never quite experienced professionally before.

Oh sure, it's fun to dream about Web-enabling all those Windows apps, to imagine deploying this bit and that as a Web service, but getting there is not for the faint of heart. In fact, in the resource-constrained, post-amputation wards that are the majority of corporate America's post-layoff IT departments, it may not be attainable for even the flintiest of souls. Bottom line: if you think—even have a dreamy flicker of hope—that you will be migrating enterprise VB6 apps to .NET you had best start by evaluating your resolve and your resources. You will not succeed without plenty of both.

Five Immutable Migration Truths
Federico Zoufaly is at the center of the .NET migration universe. He is the CTO, General Manager of Microsoft Technologies at ArtinSoft. For nearly two years, he has single-mindedly led his organization in doing the bidding of the .NET product team, creating the "wizards" that Microsoft hopes will assist developers in making the transition to .NET. Microsoft views .NET as the bottomless vessel into which it plans to pour the development world; ArtinSoft is building the funnels.

Microsoft approached ArtinSoft with the migration gauntlet in 2000, Zoufaly said. He boiled those early discussions with Microsoft down to two sentences: First, 'we are breaking backward compatibility in VB.' And second, 'we need a good upgrade story.'

Federico Zoufaly
Zoufaly will not tell you that migrating VB6 to VB.NET is in any way easy. It is not in his nature to lie. He is more of a developer turned executive rather than the other way around. He seems vaguely nonplussed by his newfound stature in the development world. Talking to him last week at VSLive!, he gave a very candid appraisal of the technology his company has created and the challenges which are inherent in migration—both the ones that his tool can solve and the ones that it can't.

A pragmatist, Zoufaly advises that VB developers first accept the following immutable truths:
  • you should not attempt migration until after your migration team has studied and learned the .NET environment
  • migration, particularly the first time you do it, is going to be very frustrating
  • migration is in no way a hands-off process
  • some applications simply cannot be migrated automatically
  • the only applications worth migrating are those which the company intends to significantly enhance with functionality that only .NET can provide
In other words, if you've imagined a process by which one loads some VB6 code into the wizard, does a few days' worth of debugging and testing, and emerges with a VB.NET application, you are living a fantasy. And the sooner you abandon that fantasy the better off you will be.

Zoufaly advises that developers should expect to spend a minimum of two to three weeks in training on the migration process and using the migration tool in practice before attempting an actual migration. And that is two to three weeks on top of the weeks and months that developers should spend learning VB.NET and the .NET framework.

"I'm not sure that [VB6 developers] realize how much more difficult it is," says Zoufaly. "But they should be able to get it. The best advice I can give is to learn VS.NET first."

After a developer is sufficiently comfortable with .NET and has spent several weeks in studying the migration process with the tool, Zoufaly says that a migration should progress at an average rate of just 7,000 to 10,000 lines of code per week. Therefore, a 1 million-line VB6 application will take 100 weeks—two years—to upgrade. Seems a little slow for something that Microsoft had the hubris to dub a migration "wizard."

Micro and Macro Issues
Zoufaly explains that the types of problems developers will experience during a migration fall into two categories: micro issues and macro issues. Micro issues are the type which generally require a simple replacement of one data type for another and which can be easily fixed in the tool. It will scan the code and display a list of the errors found. The errors are integrated with contextual help, so you can get more information by clicking on any error in the list and pressing F1. You can then tell the tool the appropriate fix for each micro issue and it will automatically replace them for you in a batch. Then it's just a matter of testing and retesting the code.

Macro issues are the ones to fear, as they are not the sort that can be solved with a global replacement in the wizard. These require refactoring of the application to change its reliance on unsupported technologies—before the migration wizard can be of any assistance. You can count on Macro issues arising in code that uses ActiveX documents, graphics, RDO/ADO data binding, and GoSub. If your application uses any of the above, be prepared to spend significant time and labor to refactor your code manually. In the case of ActiveX, you can forget about upgrading at all.

Zoufaly says developers should expect to spend one-third of the total upgrade time in preparing VB6 code for migration. In other words, at least 33 percent of the battle is fought before you stick even the first line of code into the migration wizard. This document will help you see what you'll need to do to prepare your code for the most common upgrade issues.
  Next Page: Which Applications Should You Migrate?
Page 1: IntroductionPage 2: Which Applications Should You Migrate?
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: BitLocker Encryption on Windows Server 2008
Go Parallel Article: Intel Thread Checker, Meet 20 Million LOC
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Amyuni Download: PDF & XPS Engine for Your .NET and ActiveX Applications
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES