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. .NET (Core and Framework)
  4. C# vs VB.NET

C# vs VB.NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studioc++question
9 Posts 7 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
    Carlos Mariano
    wrote on last edited by
    #1

    Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

    Carlos Mariano

    R L L K C 5 Replies Last reply
    0
    • C Carlos Mariano

      Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

      Carlos Mariano

      R Offline
      R Offline
      Ri Qen Sin
      wrote on last edited by
      #2

      Use C++/CLI and/or VB.NET 2005 =)

      ROFLOLMFAO

      1 Reply Last reply
      0
      • C Carlos Mariano

        Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

        Carlos Mariano

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Well C++ is still viable and as Scene states there is C++/CLI for doing Managed or even Mixed Mode development. If at all possible I recommend dropping VB altogether and moving to C#.

        led mike

        1 Reply Last reply
        0
        • C Carlos Mariano

          Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

          Carlos Mariano

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          You want to keep as much as possible what you already have and know ? Stick to your familiar language, inside .NET You want to move forward ? Go for C#. It may look a bit strange and complex at first (events, delegates, generics,...), but you soon will appreciate its expressive power. :)

          Luc Pattyn

          1 Reply Last reply
          0
          • C Carlos Mariano

            Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

            Carlos Mariano

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

            If you're either more comfortable with C++ than VB or equally comfortable, then go for C#.

            Kevin

            1 Reply Last reply
            0
            • C Carlos Mariano

              Hi All, I'm currently working with Visual Studio 6.0 VB and C++, now I want to migrate to .NET platform, witch language should I choose ? Any ideas, thanks

              Carlos Mariano

              C Offline
              C Offline
              Carlos Mariano
              wrote on last edited by
              #6

              C# goes more deeply than VB.NET ?? I really don't get the picture about what are the big diferences between both languages. Thanks for the answers.

              Carlos Mariano

              G 1 Reply Last reply
              0
              • C Carlos Mariano

                C# goes more deeply than VB.NET ?? I really don't get the picture about what are the big diferences between both languages. Thanks for the answers.

                Carlos Mariano

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                First some similarites: :: They both use the .NET framework. That means that there is very little difference in what you can do with the languages. :: They both compile to IL code, using a JIT compiler to produce the final executable. Well written code in each language results in very similar IL code, so they perform about the same. :: They both are fully object oriented (as opposed to VB 6, which is not). Then some differences: :: C# is a relatively new language, based on the better parts of Java, C++ and Pascal (Delphi), while VB.NET suffers a bit from being based on VB 6, and also suffers from being based on BASIC, a language that is over 40 years old... :: C# uses strict data typing, while VB.NET uses implicit conversions. You have to specify most data type conversions in C#, while VB.NET will automatically perform conversions in the background. The automatic conversions makes some things easier, but it's quite easy to use expensive conversion by mistake if you don't know what you are doing. :: The syntax of VB.NET is very similar to VB 6, which makes it compelling for old VB 6 programmers. The syntax of C# is similar to C++, which makes it compelling for C++ programmers. It's a good idea to get some knowledge in both C# and VB.NET, as that makes it a lot easier if you find example code that you need to convert. It also gives a deeper knowledge in how .NET works.

                --- Year happy = new Year(2007);

                P 1 Reply Last reply
                0
                • G Guffa

                  First some similarites: :: They both use the .NET framework. That means that there is very little difference in what you can do with the languages. :: They both compile to IL code, using a JIT compiler to produce the final executable. Well written code in each language results in very similar IL code, so they perform about the same. :: They both are fully object oriented (as opposed to VB 6, which is not). Then some differences: :: C# is a relatively new language, based on the better parts of Java, C++ and Pascal (Delphi), while VB.NET suffers a bit from being based on VB 6, and also suffers from being based on BASIC, a language that is over 40 years old... :: C# uses strict data typing, while VB.NET uses implicit conversions. You have to specify most data type conversions in C#, while VB.NET will automatically perform conversions in the background. The automatic conversions makes some things easier, but it's quite easy to use expensive conversion by mistake if you don't know what you are doing. :: The syntax of VB.NET is very similar to VB 6, which makes it compelling for old VB 6 programmers. The syntax of C# is similar to C++, which makes it compelling for C++ programmers. It's a good idea to get some knowledge in both C# and VB.NET, as that makes it a lot easier if you find example code that you need to convert. It also gives a deeper knowledge in how .NET works.

                  --- Year happy = new Year(2007);

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Guffa wrote:

                  :: C# uses strict data typing, while VB.NET uses implicit conversions. You have to specify most data type conversions in C#, while VB.NET will automatically perform conversions in the background. The automatic conversions makes some things easier, but it's quite easy to use expensive conversion by mistake if you don't know what you are doing.

                  You can override this behaviour in VB.NET by setting OPTION STRICT on it.

                  the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
                  Deja View - the feeling that you've seen this post before.

                  C 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Guffa wrote:

                    :: C# uses strict data typing, while VB.NET uses implicit conversions. You have to specify most data type conversions in C#, while VB.NET will automatically perform conversions in the background. The automatic conversions makes some things easier, but it's quite easy to use expensive conversion by mistake if you don't know what you are doing.

                    You can override this behaviour in VB.NET by setting OPTION STRICT on it.

                    the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
                    Deja View - the feeling that you've seen this post before.

                    C Offline
                    C Offline
                    Carlos Mariano
                    wrote on last edited by
                    #9

                    Now I have more ideas about both languages. Ok, thank you all for the replies.

                    Carlos Mariano

                    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