|
-
Aug 15th, 2005, 10:07 AM
#1
Thread Starter
Hyperactive Member
Migrating to VB.NET soon. Question about it...
I was wondering, I use VB6 at work and we are going to migrate to .NET in the near future. I hear the migration will be a pain. Can anyone give me a brief description of the problems in recoding VB6 into vb.NET? I am looking for basically an overview of what to concentrate on when changing over my code.
Thanks a bunch!
Tacoman667
-
Aug 15th, 2005, 10:10 AM
#2
Addicted Member
Re: Migrating to VB.NET soon. Question about it...
vb.net does have an update option that will convert your old code to .net.
-
Aug 15th, 2005, 10:19 AM
#3
Thread Starter
Hyperactive Member
Re: Migrating to VB.NET soon. Question about it...
I tried that with a simple program I used involving classes I created with the VB6 class builder utility. The classes got all messed up in the transformation. I didn't have the time to check through it thoroughly, but it was pretty messed up and I felt I needed to completely redo my classes. Is this common from VB6 to .NET?
-
Aug 15th, 2005, 11:25 AM
#4
Re: Migrating to VB.NET soon. Question about it...
Don't use the converter.... trust me on this, it will do two things:
1) Cause more problems than it solves.
2) IT doesn't actualy convert, but wraps the VB6 code with .NET wrappers. Example ADO.. IT doen't convert to ADO.NET, but adds the old ADO Interop reference, then simply adds Catch Trys around it and that's it.
And if you need further evidence on not using the converter, I attended a conference a couple of years ago and managed to talk to the guys that built the converter.... and even they recommended not using it. The only reason it was even built was because they knew they would hear about it if they didn't.
Based on my own experience and some of the stories I've heard, if you do convert to .NET, it's best to re-write it from scratch. It'll be cleaner, less hassle and better in the long run. Plus it gives you the chance to re-do the parts that you wish you could do all over again (that's what we are doing.)
Tg
-
Aug 15th, 2005, 02:05 PM
#5
Hyperactive Member
Re: Migrating to VB.NET soon. Question about it...
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|