Change from vb6 to vb.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raymond Chiu

    Change from vb6 to vb.net

    Dear All,

    I have the vb6 program. I am planning to convert this to be vb.net and
    asp.net 2.0 program. I think I need to recreate all forms but as to class
    modules, modules code and designer in which how can I convert them to be
    vb.net common functions or others and crystal reports or .net reports? Any
    suggestions???

    I am using vs 2005 with asp.net 2.0 and on sql server 2000 and windows 2000
    server.

    Any ideas are welcome.

    Appreciate your help.

    Thanks,



  • =?Utf-8?B?U3VydHVyWg==?=

    #2
    RE: Change from vb6 to vb.net

    Rewrite the code from scratch. VB.NET is sufficiently different from VB6 to
    make automated conversion useless, and you'll learn the new syntax as you
    re-write.

    It's well worth the effort though, VB.NET is ten times better than VB6. I've
    been programming in MS BASICs since QuickBasic 4.5, so take my word for it
    that you should move to VB.NET ASAP.

    --
    David Streeter
    Synchrotech Software
    Sydney Australia


    "Raymond Chiu" wrote:
    Dear All,
    >
    I have the vb6 program. I am planning to convert this to be vb.net and
    asp.net 2.0 program. I think I need to recreate all forms but as to class
    modules, modules code and designer in which how can I convert them to be
    vb.net common functions or others and crystal reports or .net reports? Any
    suggestions???
    >
    I am using vs 2005 with asp.net 2.0 and on sql server 2000 and windows 2000
    server.
    >
    Any ideas are welcome.
    >
    Appreciate your help.
    >
    Thanks,
    >
    >
    >
    >

    Comment

    • \(O\)enone

      #3
      Re: Change from vb6 to vb.net

      SurturZ wrote:
      Rewrite the code from scratch. VB.NET is sufficiently different from
      VB6 to make automated conversion useless
      Personally I disagree. I've upgraded a huge number of projects from VB6 to
      ..NET over the last few years and in every case I've started with the .NET
      upgrade wizard.

      The code that came out the other end was indeed full of errors, and I
      actually wrote my own program to correct a lot of these (many of the things
      it corrects are specific to the environment my projects are developed for,
      so this wouldn't be of much use to anyone else but it performs a large
      amount of cleanup for me). But even without this, you do end up with the
      skeletal structure of the original code all in place and with significant
      chunks of code that do already work without needing any modification.

      Having done that I then exclude all the source files from my project and
      re-include them one by one (starting with those that have no dependencies on
      the other files), switching Option Strict On in each one and scanning
      through the source code line by link to correct any upgrade errors, make any
      ..NET language/structure improvements, and ensure that every single upgrade
      warning is considered. This is of course somewhat time consuming, but
      certainly for the complex projects I've been upgrading it's a heck of a lot
      faster than rewriting it would have been.

      The end results have been very good. A few errors have slipped through but
      then I'm sure errors would have been introduced rewriting the projects too.

      YMMV of course, but I think that the upgrade wizard does perform a useful
      service, even if it doesn't produce anything that is approaching
      production-quality code.

      --

      (O)enone


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Change from vb6 to vb.net

        "(O)enone"

        In my idea is this too the rigth way.

        Cor


        "(O)enone" <oenone@invalid .invalidschreef in bericht
        news:g0jhaj$9ma $1@registered.m otzarella.org.. .
        SurturZ wrote:
        >Rewrite the code from scratch. VB.NET is sufficiently different from
        >VB6 to make automated conversion useless
        >
        Personally I disagree. I've upgraded a huge number of projects from VB6 to
        .NET over the last few years and in every case I've started with the .NET
        upgrade wizard.
        >
        The code that came out the other end was indeed full of errors, and I
        actually wrote my own program to correct a lot of these (many of the
        things it corrects are specific to the environment my projects are
        developed for, so this wouldn't be of much use to anyone else but it
        performs a large amount of cleanup for me). But even without this, you do
        end up with the skeletal structure of the original code all in place and
        with significant chunks of code that do already work without needing any
        modification.
        >
        Having done that I then exclude all the source files from my project and
        re-include them one by one (starting with those that have no dependencies
        on the other files), switching Option Strict On in each one and scanning
        through the source code line by link to correct any upgrade errors, make
        any .NET language/structure improvements, and ensure that every single
        upgrade warning is considered. This is of course somewhat time consuming,
        but certainly for the complex projects I've been upgrading it's a heck of
        a lot faster than rewriting it would have been.
        >
        The end results have been very good. A few errors have slipped through but
        then I'm sure errors would have been introduced rewriting the projects
        too.
        >
        YMMV of course, but I think that the upgrade wizard does perform a useful
        service, even if it doesn't produce anything that is approaching
        production-quality code.
        >
        --
        >
        (O)enone
        >

        Comment

        • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

          #5
          RE: Change from vb6 to vb.net

          Raymond,

          You might want to keep an eye on this project:



          Kerry Moorman


          "Raymond Chiu" wrote:
          Dear All,
          >
          I have the vb6 program. I am planning to convert this to be vb.net and
          asp.net 2.0 program. I think I need to recreate all forms but as to class
          modules, modules code and designer in which how can I convert them to be
          vb.net common functions or others and crystal reports or .net reports? Any
          suggestions???
          >
          I am using vs 2005 with asp.net 2.0 and on sql server 2000 and windows 2000
          server.
          >
          Any ideas are welcome.
          >
          Appreciate your help.
          >
          Thanks,
          >
          >
          >
          >

          Comment

          Working...