Help - Search - Members - Calendar
Full Version: VB6 to VB.net migration
Forums.MrPLC.com > PLCs and Supporting Devices > General Topics - The Lounge > Computer Help and Networking
Rod_Hackney

I have a Wonderware system that runs a few VB6 programs. Anyone have advice on converting VB6 code to VB.net. Since VB6 is no longer available. VB.net has a conversion utlitity but wanted to know if anyone has used it or would it be better to just rewrite code in VB.net?


tbode
I'm taking a intro VB.Net 2005 class right now and have experimented with converting VB 6.0 code. The conversion program "converts" about 90% of the code, but tells you where and why old code that needs to be handled manually. That said, I think it's just as easy to rewrite the app so that you get proficient in the new IDE and debugger for future support. My two cents.
BobLfoot
QUOTE(Rod_Hackney @ Jul 19 2007, 08:13 AM) [snapback]56737[/snapback]

I have a Wonderware system that runs a few VB6 programs. Anyone have advice on converting VB6 code to VB.net. Since VB6 is no longer available. VB.net has a conversion utlitity but wanted to know if anyone has used it or would it be better to just rewrite code in VB.net?

Let me second the write code from scratch in .net approach. I think you'll find microsoft has a free version of .net you can download from microsoft.com.
GerryM
I find it easier to convert first and see what is different.

Some things like database access and others were completely different for me. Those areas will need to be re-written from scratch.

It really depends on the code you are starting with. Some programs convert well others don't.
Alaric
QUOTE(BobLfoot @ Jul 19 2007, 03:39 PM) [snapback]56750[/snapback]

Let me second the write code from scratch in .net approach. I think you'll find microsoft has a free version of .net you can download from microsoft.com.


I've downloaded it but I have a question. Does the free version let you create deployable active X components, or does it only run in interpreter mode from within the IDE? I have a VB6 active X that I would like to update.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.