What is the difference between C# and C++.Net? Sorry for the lame question,
but I have been trying to figure out the difference. Which one is better to
use for commercial applications?
Thanks for helping me understand!...
Nishant Sivakumar - 02 Jun 2005 11:35 GMT
Once VC++ 2005 is out, C++/CLI lets you do everything C# does + lots more
(managed templates, mixed mode, STL.NET, stack semantics etc.)
But since C++/CLI is still in beta, currently it's C# that'll get you a job.

Signature
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
> What is the difference between C# and C++.Net? Sorry for the lame
> question,
[quoted text clipped - 3 lines]
>
> Thanks for helping me understand!...
Peter van der Goes - 02 Jun 2005 14:58 GMT
> What is the difference between C# and C++.Net? Sorry for the lame
> question,
[quoted text clipped - 3 lines]
>
> Thanks for helping me understand!...
A major difference between the languages is that C# is strictly tied to .NET
whereas C++ is not. Using C++, you have the ability to develop applications
that are completely independent of the .NET Framework. In Visual Studio,
you'll note many templates available for C++ which are not dependent on the
.NET Framework (Win32 and MFC, etc.) where C# templates all depend on .NET.
So, the question becomes what *kind* of commercial applications are we
talking about?
If you're talking about .NET applications, Nishant's comments apply, and you
should especially note that VS 2005 brings major new features for C++ .NET
development.

Signature
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Carl Daniel [VC++ MVP] - 02 Jun 2005 15:15 GMT
> What is the difference between C# and C++.Net? Sorry for the lame
> question, but I have been trying to figure out the difference. Which
> one is better to use for commercial applications?
They're two different languages, both descended from C.
Which one is better depends on who's using them. If you know neither, then
you should probably use C#, since it's easier to learn and harder to shoot
yourself in the foot.
C++ is the only .NET language that can produce both native (x86) and managed
(IL) code and transition freely between the two domains. If your
application involves a lot of interoperation with existing native code, then
C++ is likely your best choice.
C++ is also the only Visual Studio .NET language that can generate pure
native applications, so if you need to distribute an app with no
dependencies on the .NET framework, then C++ is your only choice (within
VS).
-cd