Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Upgrading VB5 application to VB.Net or C#

Upgrading VB5 application to VB.Net or C#

Scheduled Pinned Locked Moved Visual Basic
csharp
11 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Ceriouss
    wrote on last edited by
    #1

    Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

    C V K L D 5 Replies Last reply
    0
    • C Ceriouss

      Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Take option 2 or 3. VB6 is a very different language, the upgrade tool plain does not work, nor can it.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • C Ceriouss

        Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        The elegant approach: 1) Pick up the logic from the specs of the application or a bit of reverse engineering/study of the application. 2) Plan out the implementation in (3). :) I don't subscribe to implementing in (2). It sucks. :mad:

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        1 Reply Last reply
        0
        • C Ceriouss

          Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #4

          Have a look here: VB Fusion - Extend Your Visual Basic 6.0 Applications[^] The video: "When to use Visual Basic Fusion" discusses what path to take depending on your scenario.

          Kevin

          1 Reply Last reply
          0
          • C Ceriouss

            Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

            L Offline
            L Offline
            leckey 0
            wrote on last edited by
            #5

            Having worked with all I would go with option 3. Rewriting and then converting is going to give you a ton of errors that you may as well start from scratch. This will also give you the ability to look at .NET features to see what you can rewrite to make the program more robust and faster.

            _____________________________________________ Flea Market! It's just like...it's just like...A MINI-MALL!

            1 Reply Last reply
            0
            • C Ceriouss

              Hi, I have a large VB5 application that needs to be moved to .Net. I am considering 3 options to upgrade the application. 1) Upgrading to VB6 first and then using the wizard to upgrade to VB.Net 2) Rewrite the application in VB.Net 3) Rewrite the application in C# Does anyone have any advice for taking this application to .Net or have any experience taking a VB5 application to .Net. Thanks

              D Offline
              D Offline
              Drew
              wrote on last edited by
              #6

              Depending on what kind of app you are wanting to make, I'd go with options 2 or 3. I usually use VB.NET because it is easy, intuitive, and quick to write. If you are going to make a robust, thorough, or big app, then go with C#. It is MUCH faster, especially with dealing with many numbers. In summary, I personally would choose VB.NET, simply because I don't know how much better C# is. If you're a beginning or advanced programmer looking to build a medium sized or large app, use C#. If it's just a simple app, use VB.NET. It's easy and fast. Besides, usually you don't need the speed.

              D 1 Reply Last reply
              0
              • D Drew

                Depending on what kind of app you are wanting to make, I'd go with options 2 or 3. I usually use VB.NET because it is easy, intuitive, and quick to write. If you are going to make a robust, thorough, or big app, then go with C#. It is MUCH faster, especially with dealing with many numbers. In summary, I personally would choose VB.NET, simply because I don't know how much better C# is. If you're a beginning or advanced programmer looking to build a medium sized or large app, use C#. If it's just a simple app, use VB.NET. It's easy and fast. Besides, usually you don't need the speed.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                `Drew wrote:

                It is MUCH faster, especially with dealing with many numbers.

                Since both C# and VB.NET compile to the same MSIL, there really isn't any difference. Care to back that statement up with a benchmark?

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                D 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  `Drew wrote:

                  It is MUCH faster, especially with dealing with many numbers.

                  Since both C# and VB.NET compile to the same MSIL, there really isn't any difference. Care to back that statement up with a benchmark?

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  D Offline
                  D Offline
                  Drew
                  wrote on last edited by
                  #8

                  Well, it's not really a benchmark, but it may serve the perposes of making a point. I have a project purchases program. Each time it loads, it goes off and gets > 45,000 records, sorts them, and conveniently displays them in a hierarchy. With C#, it doesn't matter whether you load the tables or not because each takes roughly the same time. With VB.NET, it'll take a few seconds to load the same database. Please note I coded nothing in either as Visual Studio does it all.

                  D 1 Reply Last reply
                  0
                  • D Drew

                    Well, it's not really a benchmark, but it may serve the perposes of making a point. I have a project purchases program. Each time it loads, it goes off and gets > 45,000 records, sorts them, and conveniently displays them in a hierarchy. With C#, it doesn't matter whether you load the tables or not because each takes roughly the same time. With VB.NET, it'll take a few seconds to load the same database. Please note I coded nothing in either as Visual Studio does it all.

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    Designer generated code isn't necessarily the same. The only "proof" that would demonstrate this with any accuracy is if the database code was written by hand.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    D 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Designer generated code isn't necessarily the same. The only "proof" that would demonstrate this with any accuracy is if the database code was written by hand.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      D Offline
                      D Offline
                      Drew
                      wrote on last edited by
                      #10

                      Dave Kreskowiak wrote:

                      Designer generated code isn't necessarily the same.

                      Considering my part of the program is < 50 lines long (C#)(about 10 in VB.NET), it shouldn't matter, should it?

                      Dave Kreskowiak wrote:

                      The only "proof" that would demonstrate this with any accuracy is if the database code was written by hand.

                      Of course it is. Is there any other way to do it?

                      E 1 Reply Last reply
                      0
                      • D Drew

                        Dave Kreskowiak wrote:

                        Designer generated code isn't necessarily the same.

                        Considering my part of the program is < 50 lines long (C#)(about 10 in VB.NET), it shouldn't matter, should it?

                        Dave Kreskowiak wrote:

                        The only "proof" that would demonstrate this with any accuracy is if the database code was written by hand.

                        Of course it is. Is there any other way to do it?

                        E Offline
                        E Offline
                        emunews
                        wrote on last edited by
                        #11

                        There is no significant performance difference between VB.NET and C#. If you wrote two versions of the same app and one performs better than the other, then the most likely explanation is that you wrote the code differently. I remember an example from way back when from Borland who claimed that Delphi was faster than VB and provided a benchmark that 'proved' it. But when you actually look at the code, they were comparing integer operations with floating point operations. Of course, integer operations are faster than floating point operations. Whether knowingly or unknowingly, their benchmark test was invalid. Post your code here and I'll tell you what you're doing differently.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups