C++, C#, Managed C, .NET, huh?
-
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.
-
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++ 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
-
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
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).
-
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).
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++!
-
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++!
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?
-
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?
David Fleming wrote: Do have some compelling reason(s) that I would be interested? It's fun.:)
-
David Fleming wrote: Do have some compelling reason(s) that I would be interested? It's fun.:)
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++!