I seen Managed C++ again when I got my new version of Visual Studio, but I never hear much of anything about it. I’ve seen very few examples compared to C# and even Visual Basic, and the intelliscence for Managed C++ seems really, REALLY bad compated to C#.
I’m just wondering what it’s used for, and if its a good idea to use it to develop new applications, or if I should stick with C#.
I don’t know what the differences are, doesn’t C++ execute faster?
Managed Extensions for C++ or just Managed C++ is a now deprecated Microsoft set of deviations from C++, including grammatical and syntactic extensions, keywords and attributes, to bring the C++ syntax and language to the .NET Framework. These extensions allowed C++ code to be targeted to the Common Language Runtime (CLR) in the form of managed code as well as continue to interoperate with native code. Managed C++ was not a complete standalone, or fully-fledged programming language.
Does that answer your question? Managed C++ was replaced by C++/CLI
So Managed C++ doesn’t compile to the same IL as other .Net languages? I was told that all .Net languages compiled to the same IL so it didn’t matter which one you used, there was no difference in the compiled output.
Sorry, I know really nothing about C++. I just got a couple books from the library I am planning on reading those and seeing if I can learn more about C++… or Managed C++… IDK I’m still a little confused.
The main difference between traditional C++ and C# is that C# is a component of the .NET framework and requires that to run (thereby it’s bulkier and dependant on runtimes). C++ however is much more like ASM in the sense that it’s a stripped down bare bones compiler which has a lower overhead and is more cross platform compatible. Microsoft probably do a better job with C# as it’s in their incentive to tie people into their development framework, and most C++ developers use one of the many other compilers out there. If you want smaller executables that will work on Mac and Linux (well), use C++ in preference to C#.