Graphic Interface Programming makes C ++

Source: Internet
Author: User
Tags microsoft c
Graphic Interface Programming makes C ++

Some people say that C # and VB are better than C ++ because it is silly to make the interface convenient, it may be said that I am sorry for the c ++ benefactor when I use C ++ for numerical calculation and compile it on the interface. Let me talk about it.

I thought that C ++ was just born out of the Chinese arena, and he was a self-reliant team. He wanted to win the title of the Objective C boss and cut his back. However, the well-known products are still mixed. Oo is not good enough for Objective C or smalltalk, and efficiency is not as clean as C. No one can afford it for a long time. Today, the * nix Pharaoh still insisted on using C.

However, the world is unpredictable. After the graphic interface, the prawns are deeply impressed by the difficulties in interface kung fu. When VB was born, Wei zhensifang. C. I am very dissatisfied with all walks of life. How can I win the limelight of "the one true programming language. Therefore, Microsoft is strongly required to provide Vb-like functions in Microsoft C. At that time, Microsoft C/C ++ was not a climate, and it was nothing more than Turbo C. How can Microsoft miss this opportunity. Unfortunately, Microsoft has such a similar thing, that is, afx, the predecessor of the most famous MFC.

At first, afx wanted to use the OO feature of C ++ to simplify Windows interface programming. They even designed a complete oo window system, however, I was criticized for being handed over to other departments for trial use. In view of the developers' favorite C APIs, afx was completely redone, became a simple package of win APIs, and renamed it to MFC, so visual C ++ came into being. After that, Microsoft has done a lot of work on the IDE, simulating the interface design function of VB, so it launched visual c ++ 2.0, and successfully made "Ide generated code, do not change! "Router interface.

The rest is to persuade CProgramSwitch to C ++. Everyone should be familiar with the reason, except that C ++ fully contains C functions and supports oo. There is also something that nobody believes now, "getting rid of insecure areas in C", then demonstrate how to use MFC to create a window by dragging it like VB. Book dealers were wise enough to start publishing oo books, just as some people do not understand agile today. As a result, after three years of hard work, Windows 95 has entered an ordinary home, and many c programmers on windows have switched to C ++. Even if you are not familiar with C ++, you can also write "C/C ++" on your resume to earn a face. Later, the rise of open source, in order to overturn the monopoly of the Windows Graphics desktop system, many passionate developers joined the open source, so the C ++ community on * nix began to develop. However, this exposes the problem that C ++ compilers speak different dialects, not as portable as C.

In, some people finally stood up and said something in their hearts. The only success example of C ++ Oo is the interface. In, Linus Torvalds started with "you are full of bullsh1t. c ++ is a horrible language. Is C ++ wrong? Is C ++ wrong? Is C ++ really wrong?

C ++ did have extraordinary innovations and achievements, but as an attempt to innovate, the methods it proposed at the time did not completely solve the problems it was trying to solve. If we look at it without prejudice, we will find that, until today, all of our reusableCodeMost of the Code is C, and most of the high-performance code is also written in C, that is, the compiler is C ++. The most frequently-lived class library code of C ++ is the interface class. The reason is too much.

It is precisely because of these vulnerabilities of C ++ and the persistence of stroustrup on the pure coding of C ++ that has led to the unprecedented success of Java's large-scale modification of C ++. Gates was excited about Java, which led Microsoft to vigorously promote Java in the early days. However, Java is also immature. Microsoft wants to play the reform school, but sun plays the old school, microsoft refused to make any changes to Java, and both parties finally broke away. Sun, who lost support from Microsoft, was powerless at the time, but eventually outputted the 1.2 class library design to Borland, turning Java from a toy to a Conquer who kicked C ++ down the throne. Microsoft has dug from Borland to Anders hejlsberg and designed C # To identify application development and Java as decisive. Since then, C ++ has gradually withdrawn from the mainstream, hiding from the underlying layer of the background and maintaining the bridge historical heritage, while C has developed a little for Embedded Development and Good integration capabilities.

To sum up, although some C ++ people look down on interface programming, it is the graphic interface programming that has achieved C ++.

Related Article

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.