The major difference between them that C# is a fully managed .NET language
and C++ is not.
There are "managed extensions" for C++, and C++ gets even closer to the CLR
in Whidbey - but still not quite a "first class" language in .NET.
C# also gets new features in Whidbey, such as "Generics" which are akin to
C++ templates.
For me C# is the only sensible choice for a new project on the Microsoft
platform (when looking at C# vs. C++).
My background :C/C++ (10 years or so) and 3-4 years in C#.
There are many benefits in using a fully managed "first class" .NET
language: e.g. security, garbage collection.
Any hard-core C++ programmer will easily get to grips with C# and .NET
framework (and love it) - and become a more productive resource as a result.
The most convincing reason to use C++.NET is if you already have a large C++
code base which you have to reuse and build upon (and it is difficult to
"componentize").
There are only a few other very specialised situations where I would use
C++:
1. where distribution of .NET framework to remote clients is not feasible
e.g. Win98 on a 32K modem
2. (maybe) some real-time high-performance critical algorithms which do not
work in C# (in which case assembler might be more appropriate...)
Here's a link to some of the differences at a technical level:
http://msdn.microsoft.com/library/d.../cscon/html/vclrfcomparisonbetweenccsharp.asp
Hope this helps your decision.
Richard.
Fabio said:
Hi
I would like to know the key differences between c#.NET and c++.NET as I
am currently evaluating which one of