Comparison between MFC, winform, and WPF

Source: Internet
Author: User

Original article: http://hi.baidu.com/rickiedu/blog/item/37c9fe24adada61d8a82a1db.html
MFC generate local machineCode, Naturally, it is very fast. However, the message loop slows down the display speed on the interface.

Winform encapsulates Win32 APIs for multiple p/invoke operations (most of which are encapsulated using P/invoke operations), which is slow.

WPF is a new model. It no longer uses Win32 models. It creates models by itself. dx is used as a new display technology to directly access the driver.Program, To speed up the operation, however, such

The model must support the DX 9 video card with high hardware requirements (Can you find that the modern machine does not support DX9 ?)

In terms of development efficiency, MFC <WPF <winform

Although the execution efficiency of the MFC development interface is high, the development efficiency is low. As for current project development, time and development efficiency often determine the success or failure of the project, unless there are special requirements,

Otherwise, try to avoid using MFC for development. MFC is just a weak package.

Development Cost, MFC> WPF> winform

The development cost of using MFC is too high, which requires higher developer capabilities. As a customer service, the less development cost, the better. The developer certainly wants to make more money, the better.

This is a big reason why MFC is declining.

In terms of interface execution efficiency, MFC = WPF> winform

As the performance of computer hardware increases and the popularity of multi-core CPUs, the gap between them will become smaller and smaller.

Development flexibility: WPF> MFC> winform

Appearance: WPF> winform> MFC

In this case, it is extremely difficult to develop a gorgeous UI under MFC. You may say that you can use controls, but commercial development controls are charged !! WPF is easy to make.

Ui effects such as Vista. I don't know what year or month the MFC should write this effect.
In this way, the value of MFC is lower. The efficiency and beauty are not as good as WPF, and the development efficiency is not as good as winform. In less than 10 years, with Vista replacing XP, MFC will exit the history dance.

.

Memory usage: WPF> winform> MFC

The defect of WPF will be ignored as computer hardware performance improves.

Scope of use: WPF> MFC = winform

As we can see from the above: WPF is a great trend to replace winform and MFC. From the perspective of future net development, MFC will only become a classic type and will be used as a technology for developers to learn,

Winform and WPF will coexist, but will eventually be replaced by WPF, and eventually achieve the unification of desktop and browser applications.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.