C# and C++.Net?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!...
 
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.
 
Developer said:
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!...

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.
 
Developer said:
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
 
Back
Top