Disadvantages of VS.NET C# vs VC++ on non-web apps

Posted on 2006-04-08
Last Modified: 2009-07-29
I have been coding in c# for a while now, and have a couple "professional" scale stand alone projects coming up, they range from sockets, to database management and entry, I know basic c++, but was wondering the disadvantages of using c# vs c++....
Question by:addicktz
    LVL 48

    Accepted Solution

    For critical real time applications C# can be slower than C++ applications. C# doesn't contain low-level stuff for talking with drivers, accessing some Windows SDK like Device Management Functions, inline Assembly etc.
    It is difficult to use legacy code written in C++ directly in C#.

    However, C# together with C++/CLI can be successfully used for creating desktop applications. C# can be used whenever it possible for UI, database, WEB access, file management etc., with all advantages of high-level programming using well designed language. Class libraries written in C++/CLI can be used to make low level operations which are not available for C#. These two languages together are good platform for creating Windows desktop applications, especially for programmer with previous C++ experience.
    LVL 10

    Assisted Solution

    For what you are describing C# is well suited for the task. There are applications for which C++ is much better suited but these are in the area of high-performance 3D applications, games, drivers, and things such as this. For network communication, database management, etc I agree with AlexFM, C# is very fine for that.

    Perhaps the only other issue is that by using a .NET language, your client is forced to have the .NET runtime installed.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now