Solved

Migrating Visual Basic 6 programs to Visual Studio .Net

Posted on 2015-01-02
3
2,030 Views
Last Modified: 2015-01-02
I have some Visual Basic 6 programs that need to be migrated to Visual Studio 2013 Professional.

Writes up on the migration inform me that I need to download Visual Studio 2008 Express Edition first to use the conversion tool that will migrate the Visual Basic 6 code to .Net code.

Where can I find a Visual Studio 2008 Express Edition download?

Thank you
0
Comment
Question by:AndrewBanfer
3 Comments
 
LVL 33

Assisted Solution

by:it_saige
it_saige earned 250 total points
ID: 40528014
Unfortunately Microsoft has removed the direct link for Visual Studio 2008 Express.  Instead, you can still download the specific edition you need:

You can download Visual Basic 2008 Express from here: http://go.microsoft.com/?linkid=7729280

http://blogs.msdn.com/b/charles_sterling/archive/2010/02/25/what-happen-to-the-visual-studio-2008-express-download-link.aspx

-saige-
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
ID: 40528035
I am sorry to inform you that a conversion is a very bad idea. Although they use the same syntax, VB6 and VB.NET are 2 different things.

The conversion tool does what it can (when it can), generating awful code that does not works well, offers less performance than the VB6 application and is an horror to debug and maintain. And you cannot use the resulting code as an example of how to code in .NET. Nobody would code that way in .NET. It's simply that .NET applications are not designed the same way, and the conversion tool cannot redesign the application, it can only translate the syntax. In order for the result to work (if you are lucky), the conversion tools uses a lot of tricks that even experienced .NET programmers cannot understand clearly.

Unless the project is a simple thing you created for your own use and can run in debug mode most of the time, you are probably losing time trying a conversion.

It's even worse if you are relying on third party libraries, because after the conversion, you .NET code would still rely on them. The conversion tool cannot convert something that is already compiled, it needs the code source. And there are many situations where old COM libraries have a lot of problems interacting with .NET applications.

A rewrite is almost always the only viable solution if you are a professional.

I gave training on VB6 for 10 years. I have been giving training on VB.NET for 13 years. So I have met a lot of professional programmers who were making the switch. Except for one of those who decided to go the conversion route against my advice, only one was successful. Everybody else failed and lost a lot of time trying to fix the results of the conversion, and then had to restart at zero for a real conversion.

The only one who succeeded did use the conversion tool at all. She was working with a VB6 project where most of the job was done in dlls that they had written themselves and did not use the Variant data type. The Variant that has no direct equivalent in .NET and can be a problem when mixing VB6 and VB.NET applications and libraries. Because it is the worst thing to convert, they completely redesigned and rewrote the interface in .NET. They kept using their VB6 dlls in the background as long as they could. As the years went by, new features were done in .NET. They simply did it as a slow rewrite, piece by piece, as needed.
0
 

Author Comment

by:AndrewBanfer
ID: 40528072
Thank very much Saige and Jacques for your input!  I'm going to try it both ways because we have a lot of programs to convert and I need to provide a schedule and justification of schedule.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
No row return after calling the fillschema method 4 39
WPF - Tooltips for ComboBox items 5 28
Iterate two lists and remove inactive 11 49
Not seen Link button 5 0
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now