Upgrading VB6 to .Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg P

    #1

    Upgrading VB6 to .Net

    Could someone point me to a good guide for upgrading an existing vb6
    application to vb 2005? I now know that my use of control arrays will need
    to be adjusted, does the wizard to this for me? What else don't I know about
    that I will need to adjust? I'm sure this question has been asked thousands
    of times beofre but I can't seem to find a good guide by someone who isn't
    trying to sell me software.

    Thanks
    Greg
  • Ken Halter

    #2
    Re: Upgrading VB6 to .Net

    "Greg P" <gsp@newsgroups .nospam> wrote in message
    news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=blue]
    > Could someone point me to a good guide for upgrading an existing vb6
    > application to vb 2005? I now know that my use of control arrays will
    > need
    > to be adjusted, does the wizard to this for me? What else don't I know
    > about
    > that I will need to adjust? I'm sure this question has been asked
    > thousands
    > of times beofre but I can't seem to find a good guide by someone who isn't
    > trying to sell me software.
    >
    > Thanks
    > Greg[/color]

    Well... I can point you to a couple of books...

    Free Book - Introducing Visual Basic 2005 for Developers
    http://msdn.microsoft.com/vbrun/stay...5/default.aspx

    Free Book - Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic
    ..NET
    http://msdn.microsoft.com/vbrun/stay...6/default.aspx

    ....and, regarding " What else don't I know about that I will need to
    adjust?", just prepare yourself for a complete re-write. That way, any
    conversion that actually works will be a pleasant surprise.

    btw... wanna buy some software? ;-)

    --
    Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
    Please keep all discussions in the groups..


    Comment

    • Ken Halter

      #3
      Re: Upgrading VB6 to .Net

      "Greg P" <gsp@newsgroups .nospam> wrote in message
      news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=blue]
      > Could someone point me to a good guide for upgrading an existing vb6[/color]

      ....almost forgot... grab this tool. It's handy even for projects you're not
      planning to migrate. (btw... that's "migrate" and not "upgrade" big
      difference ;-)

      Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
      http://www.microsoft.com/downloads/d...displaylang=en

      --
      Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
      Please keep all discussions in the groups..


      Comment

      • Greg P

        #4
        Re: Upgrading VB6 to .Net

        Thanks Ken, had a good laugh after that one. Considering I am interested in
        C# I may just rewrite it in C# considering its a rewrite anyway... could you
        expand on the differnce between migrate and upgrade.

        Thanks,
        Greg

        "Ken Halter" wrote:
        [color=blue]
        > "Greg P" <gsp@newsgroups .nospam> wrote in message
        > news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=green]
        > > Could someone point me to a good guide for upgrading an existing vb6[/color]
        >
        > ....almost forgot... grab this tool. It's handy even for projects you're not
        > planning to migrate. (btw... that's "migrate" and not "upgrade" big
        > difference ;-)
        >
        > Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
        > http://www.microsoft.com/downloads/d...displaylang=en
        >
        > --
        > Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
        > Please keep all discussions in the groups..
        >
        >
        >[/color]

        Comment

        • Dick Grier

          #5
          Re: Upgrading VB6 to .Net

          Hi,

          I'll speak (out of turn) for Ken. Some feel that VS .NET is not an upgrade.

          Others of us have more mixed thoughts. I'm one of those. It is an
          upgrade -- that requires migration. To fully use .NET's facilities, a
          number of issues should be addressed, including some that may suggest
          redesign, not just migration. BTW, unless you want to use C# for some good
          reason, such as "it's a standard in our company," there is no reason (IMO)
          to choose it over VB.

          ..NET definitely IS a upgrade for enterprise developement, but is much less
          useful for some utilities, etc. It (still) is not as facile as VB6 in some
          areas, while in other areas, .NET is much more powerful; and in these areas
          RAD really IS where .NET is "at".

          My own work is down to about 60% VB6, and 40% .NET (mostly VB), and I expect
          that trend to continue - slowly.

          Dick

          --
          Richard Grier, MVP
          Hard & Software
          Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
          Edition,
          ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004.
          See www.hardandsoftware.net for details and contact information.


          Comment

          • CMM

            #6
            Re: Upgrading VB6 to .Net

            In terms of explaining general details, Dan Appleman's "Moving to VB.NET"
            (yeah THAT Dan Appleman... if you've been coding in VB for a few years you'd
            know who he is) book was the single MOST HELPFUL resource I used when making
            the move.


            --
            -C. Moya

            "Greg P" <gsp@newsgroups .nospam> wrote in message
            news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=blue]
            > Could someone point me to a good guide for upgrading an existing vb6
            > application to vb 2005? I now know that my use of control arrays will
            > need
            > to be adjusted, does the wizard to this for me? What else don't I know
            > about
            > that I will need to adjust? I'm sure this question has been asked
            > thousands
            > of times beofre but I can't seem to find a good guide by someone who isn't
            > trying to sell me software.
            >
            > Thanks
            > Greg[/color]


            Comment

            • CMM

              #7
              Re: Upgrading VB6 to .Net

              VB has soooo many things over C# it's not even funny. C# is so barebones...
              no background compile so that means no full syntax checking as you're coding
              and limited intellisense. Event handling is all manual (no declarative event
              handling like in VB). I'm an old-school C/C++ programmer and there's a
              reason why I like VB. Because, well, it's GOOD and intuitive. Not to mention
              case sensitivity... whoever thinks this is a "feature" is retarded. I like
              typing endif and having it magically cased properly. I like my language to
              be smart... C# is just dumb dumb dumb.

              On the flipside C# has very few things over VB... ability to declare parts
              of your code as "Unmanaged" is the only "hardcore" thing it's got over
              VB.... but, that's a dubious feature to begin with.

              --
              -C. Moya

              "Greg P" <gsp@newsgroups .nospam> wrote in message
              news:27E48F68-985C-4243-B793-D677AB4B619B@mi crosoft.com...[color=blue]
              > Thanks Ken, had a good laugh after that one. Considering I am interested
              > in
              > C# I may just rewrite it in C# considering its a rewrite anyway... could
              > you
              > expand on the differnce between migrate and upgrade.
              >
              > Thanks,
              > Greg
              >
              > "Ken Halter" wrote:
              >[color=green]
              >> "Greg P" <gsp@newsgroups .nospam> wrote in message
              >> news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=darkred]
              >> > Could someone point me to a good guide for upgrading an existing vb6[/color]
              >>
              >> ....almost forgot... grab this tool. It's handy even for projects you're
              >> not
              >> planning to migrate. (btw... that's "migrate" and not "upgrade" big
              >> difference ;-)
              >>
              >> Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
              >> http://www.microsoft.com/downloads/d...displaylang=en
              >>
              >> --
              >> Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
              >> Please keep all discussions in the groups..
              >>
              >>
              >>[/color][/color]


              Comment

              • Carlos J. Quintero [VB MVP]

                #8
                Re: Upgrading VB6 to .Net

                Hi Greg,

                See:

                Resources about upgrading from Visual Basic 6.0 to Visual Basic .NET
                MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


                --

                Best regards,

                Carlos J. Quintero

                MZ-Tools: Productivity add-ins for Visual Studio
                You can code, design and document much faster:
                MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.




                "Greg P" <gsp@newsgroups .nospam> escribió en el mensaje
                news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@mi crosoft.com...[color=blue]
                > Could someone point me to a good guide for upgrading an existing vb6
                > application to vb 2005? I now know that my use of control arrays will
                > need
                > to be adjusted, does the wizard to this for me? What else don't I know
                > about
                > that I will need to adjust? I'm sure this question has been asked
                > thousands
                > of times beofre but I can't seem to find a good guide by someone who isn't
                > trying to sell me software.
                >
                > Thanks
                > Greg[/color]


                Comment

                • Paul Clement

                  #9
                  Re: Upgrading VB6 to .Net

                  On Mon, 27 Feb 2006 10:45:25 -0800, Greg P <gsp@newsgroups .nospam> wrote:

                  ¤ Thanks Ken, had a good laugh after that one. Considering I am interested in
                  ¤ C# I may just rewrite it in C# considering its a rewrite anyway... could you
                  ¤ expand on the differnce between migrate and upgrade.
                  ¤

                  Upgrading typically implies immediate gratification while migration is the realization that the
                  successful completion of the upgrade will occur either just before or after the release of the next
                  version of the product.


                  Paul
                  ~~~~
                  Microsoft MVP (Visual Basic)

                  Comment

                  • Ken Halter

                    #10
                    Re: Upgrading VB6 to .Net

                    "Paul Clement" <UseAdddressAtE ndofMessage@sws pectrum.com> wrote in message
                    news:75p802tdd1 ljocbl40bn3m7dv uhvqq828r@4ax.c om...[color=blue]
                    > On Mon, 27 Feb 2006 10:45:25 -0800, Greg P <gsp@newsgroups .nospam> wrote:
                    >
                    > ¤ Thanks Ken, had a good laugh after that one. Considering I am
                    > interested in
                    > ¤ C# I may just rewrite it in C# considering its a rewrite anyway... could
                    > you
                    > ¤ expand on the differnce between migrate and upgrade.
                    > ¤
                    >
                    > Upgrading typically implies immediate gratification while migration is the
                    > realization that the
                    > successful completion of the upgrade will occur either just before or
                    > after the release of the next
                    > version of the product.[/color]

                    If you're referring to dotNet, well put! <g> Basically, "an upgrade", to me
                    is... something you buy that, when opening a file created by an older
                    version of a product, converts that file to a new format and lets you get on
                    with your work... Winzip (no format changes, just new functionality), Word
                    (same thing), InstallShield (saves the old project and uses the info to
                    create a project compatible with the current version. 100% guaranteed to
                    work, btw). I've just never had an "upgrade" to anything that required so
                    much effort.

                    I'm finally getting to the point where "some" of the sample code works on my
                    PC(s). I knew it was just a configuration problem. Sad part is, the VS
                    installer should detect these "issues" during installation and tell you how
                    to fix them. I mean, sheesh... if all I have to do is clear my temp folders
                    to get the thing to install correctly, the installer should be able to
                    detect files in that folder and say "please clear your temp folder before
                    continuing" (betchya I can get InstallShield to do that simple task <g>)
                    [color=blue]
                    >
                    > Paul
                    > ~~~~
                    > Microsoft MVP (Visual Basic)[/color]


                    --
                    Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
                    Please keep all discussions in the groups..


                    Comment

                    Working...