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. Other Discussions
  3. IT & Infrastructure
  4. C++, C#, Managed C, .NET, huh?

C++, C#, Managed C, .NET, huh?

Scheduled Pinned Locked Moved IT & Infrastructure
csharpc++javascriptquestiondiscussion
7 Posts 4 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.
  • D Offline
    D Offline
    David Fleming
    wrote on last edited by
    #1

    I got some information on this from the "Where to start" thread earlier (so thanks to those guys), but.... What, really, are the differences between C++, C#, Managed C and C.Net? What are the strengths, weaknesses, advantages, disadvantages, etc. I'm not really looking for a lengthy lecture on the subject, just some basic info (or opinions). Just in case you are curious, I program in C++ just for kicks. I don't work in the computer field at all. I use VC++ 6.0. I used to play with VB, but I am enjoying C++ a lot. I also dink around with ASP, VBScript and JavaScript.

    C 1 Reply Last reply
    0
    • D David Fleming

      I got some information on this from the "Where to start" thread earlier (so thanks to those guys), but.... What, really, are the differences between C++, C#, Managed C and C.Net? What are the strengths, weaknesses, advantages, disadvantages, etc. I'm not really looking for a lengthy lecture on the subject, just some basic info (or opinions). Just in case you are curious, I program in C++ just for kicks. I don't work in the computer field at all. I use VC++ 6.0. I used to play with VB, but I am enjoying C++ a lot. I also dink around with ASP, VBScript and JavaScript.

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      C++ is an evolution of C that allows object oriented programming (though it doesn't force it). It's used on pretty much every platform and makes it easy to leak memory and expose your apps to buffer overruns. It's fast. C# is fully object oriented and is an evolution of C++. It only works on the .NET platform and can only produce managed code (ie code that runs on the .NET Framework and uses the .NET security model and .NET garbage collector). You can't leak memory (but you can leak resources) and runtime checks ensure security. You can run in unchecked and unsafe mode if you like to live on the edge. It's slower than C++, and you need the .NET framework for it to run. Managed C++ is more correctly 'C++ with Managed Extensions', and is just that: C++ with extra bits that allows your code to target the .NET managed environment (ie use the .NET objects, create objects on the .NET managed heap and create classes that can be consumed by other .NET languages). Managed C++ is still C++ deep down, so using Visual C++ .NET / Managed C++ you can target .NET, native win32, or both (within the same application if you wish). No other language lets you do this. It's only slow when you dip into the Managed .NET framework. cheers, Chris Maunder

      D 1 Reply Last reply
      0
      • C Chris Maunder

        C++ is an evolution of C that allows object oriented programming (though it doesn't force it). It's used on pretty much every platform and makes it easy to leak memory and expose your apps to buffer overruns. It's fast. C# is fully object oriented and is an evolution of C++. It only works on the .NET platform and can only produce managed code (ie code that runs on the .NET Framework and uses the .NET security model and .NET garbage collector). You can't leak memory (but you can leak resources) and runtime checks ensure security. You can run in unchecked and unsafe mode if you like to live on the edge. It's slower than C++, and you need the .NET framework for it to run. Managed C++ is more correctly 'C++ with Managed Extensions', and is just that: C++ with extra bits that allows your code to target the .NET managed environment (ie use the .NET objects, create objects on the .NET managed heap and create classes that can be consumed by other .NET languages). Managed C++ is still C++ deep down, so using Visual C++ .NET / Managed C++ you can target .NET, native win32, or both (within the same application if you wish). No other language lets you do this. It's only slow when you dip into the Managed .NET framework. cheers, Chris Maunder

        D Offline
        D Offline
        David Fleming
        wrote on last edited by
        #3

        Wow. Thanks. Very concise and clear. Well, from what you describe, I think, at this time, I have no need of nor interest in C# or .NET. Thanks a bunch for the info. Keep up the excellent work on the site (which is awesome) and your articles (which are equally awesome).

        R 1 Reply Last reply
        0
        • D David Fleming

          Wow. Thanks. Very concise and clear. Well, from what you describe, I think, at this time, I have no need of nor interest in C# or .NET. Thanks a bunch for the info. Keep up the excellent work on the site (which is awesome) and your articles (which are equally awesome).

          R Offline
          R Offline
          Rickard Andersson20
          wrote on last edited by
          #4

          David Fleming wrote: I have no need of nor interest in C# or .NET. You don't? Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

          D 1 Reply Last reply
          0
          • R Rickard Andersson20

            David Fleming wrote: I have no need of nor interest in C# or .NET. You don't? Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

            D Offline
            D Offline
            David Fleming
            wrote on last edited by
            #5

            Well, as Mr Maunder describes them, and since I just program for the heck of it, I don't think I need to get into C# or .NET right now. Do have some compelling reason(s) that I would be interested?

            R 1 Reply Last reply
            0
            • D David Fleming

              Well, as Mr Maunder describes them, and since I just program for the heck of it, I don't think I need to get into C# or .NET right now. Do have some compelling reason(s) that I would be interested?

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #6

              David Fleming wrote: Do have some compelling reason(s) that I would be interested? It's fun.:)

              R 1 Reply Last reply
              0
              • R Rama Krishna Vavilala

                David Fleming wrote: Do have some compelling reason(s) that I would be interested? It's fun.:)

                R Offline
                R Offline
                Rickard Andersson20
                wrote on last edited by
                #7

                Rama Krishna wrote: It's fun And much easier! :-D Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

                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