compare c++/MFC to C#/.net
-
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?
-
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?
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 )
-
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?
-
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?
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.
-
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?
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.
-
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?
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... :-)