Results 1 to 5 of 5

Thread: Migrating to VB.NET soon. Question about it...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    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

  2. #2
    Addicted Member
    Join Date
    May 2005
    Posts
    162

    Re: Migrating to VB.NET soon. Question about it...

    vb.net does have an update option that will convert your old code to .net.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    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?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Re: Migrating to VB.NET soon. Question about it...

    Did you checkout the Migrating from VB6 page?
    http://msdn.microsoft.com/vbasic/Lea...g/default.aspx
    "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
  •  



Click Here to Expand Forum to Full Width