Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. compare c++/MFC to C#/.net

compare c++/MFC to C#/.net

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++question
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seraph_summer
    wrote on last edited by
    #1

    I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

    H B L S G 5 Replies Last reply
    0
    • S Seraph_summer

      I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      I think compare is not correct but for me c++ is best language to use to write COM components also you can see we dont need to write lot of code for use of windows API but on the C# you need to more work on the C# you cant use of multiinheritance(I like it myself) on the C# you dont have header file and....for example I read a programmer said that F# is better C#. F# code: #light (*sample windows forms program*) open System.Windows.Forms let form=new Form(Visible=true,TopMost=true,Text="Welcome") ... ... BTW be careful you are on the c++ form and you want to compare c++?

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      1 Reply Last reply
      0
      • S Seraph_summer

        I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

        B Offline
        B Offline
        bob16972
        wrote on last edited by
        #3

        Seraph_summer wrote:

        I have strong feeling that c# can save you much much more time compared to MFC based programming.

        Care to elaborate?

        1 Reply Last reply
        0
        • S Seraph_summer

          I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

          L Offline
          L Offline
          Loreia
          wrote on last edited by
          #4

          Diversity is a good thing :) .net is good, but it is far from perfect. It might be easier to learn than MFC, but that doesn't mean that thousands of MFC programmers are going to switch to .net. They already *know* MFC, there is not much need for them to switch to anything else. I've used both, and I still prefer C++/MFC than C#/.net for simple projects. But C#/.net is my choice when I work with databases. As I said it is about diversity, everyone pick what he/she likes.

          1 Reply Last reply
          0
          • S Seraph_summer

            I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Seraph_summer wrote:

            I have strong feeling that c# can save you much much more time compared to MFC based programming.

            For some things, the .NET framework is very useful and, obviously, well integrated with C#. However - if you expand your horizons outside Microsoft, you can find a lot of useful, well written libraries for C++ - Boost[^], libxml2[^] and many others - I've done a few comparative implementations in both C# and C++ and have found the development time and size of the app to be comparable (and very dependent on using the right libraries) between the two languages, while the C++ implementations have been consistently faster. Of course, the apps I'm writing aren't just GUI + database layer, so my results may have no resemblance to what might hold in your domain.

            1 Reply Last reply
            0
            • S Seraph_summer

              I have learned c++/MFC for several years but no obvious improvement. suddenly I transfered to c# and .net, I have strong feeling that c# can save you much much more time compared to MFC based programming. I am wondering why MFC is still being used now? what is the advantage? is it efficiency or flexbility compared to c# based programming?

              G Offline
              G Offline
              Green Fuze
              wrote on last edited by
              #6

              Depends on what you're doing... If you're writing something that is low-level, or efficiency and response time is very important, you would write C++ (unmanaged...). Just think of a 3D computer game written in .Net, it'll be so slow that people just won't use it (or the requirements would be sky-high!). Same for massive web-severs and such... I also use C#, but only or Win Forms and such... It does cut the development time, saving many hours! So both are good - just depends for what... :-)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups