Difference Between C#.Net and C++.Net

Can someone tell me the primary differences between C#.Net and C++.Net   If I learn one, will I necessarily be learning the other   Which one would you recommend that I learn first   Currently, I know C++ but I program professionally in VB6.  I am looking to make the transition into the Visual Studio.Net arena.




Answer this question

Difference Between C#.Net and C++.Net

  • punk

    Hi,


    Yes peter is right, the similarity ends in syntax. But it really depends on what platform you are targeting. If you are only trying to target the .net framework, then the syntax and (you could also say) logic. The new C++/CLI is very similar to c# when it comes to .net programming. The only advantage that I like about C++/CLI is its interoperability with native C++. You can create classes/objects which are stored in the native heap and use it in your .net classes(managed heap)...
    In totality, if your just targeting the .net framework then I wholeheartedly suggest C#. Coz c# was specifically built for .net.





    cheers,


    Paul June A. Domag

  • Jon Turlington

    Hi,

    I'd recommend you start with C# with a focus on the .NET Framework. Since you have been working on VB6, VB.NET can also be a choice. You can do everything that you can in C# with VB.NET as well since both languages are based on the same Framework.

    Regards,
    Vikram

  • MadisE

    The similarity ends at syntax, and even there, there are significant differences. The major differences are philosophical. For partisan views promoting/defending either language, search the usenet newsgroups using Google. Prepare yourself for a load of argumentation.

    If you program in VB.NET (not equal to VB 6), then you already know some of the .NET framework. That is transferrable knowledge to any other .NET language.

    With C#, you must also learn .NET, the programming framework.

    With C++, you must also learn .NET and the STL (Standard Template Library). And some amazing syntactic rules.

    As a point of reference, I spent 10 years with C++, and gave it up (totally) to move my intellect to C#. You may not know me, but Richard Hale Shaw did likewise. You may not know him either, but you can google us.

  • Difference Between C#.Net and C++.Net