Tips for compiling Visual C ++ applications

Source: Internet
Author: User

Visual C ++ applications can recognize and compile C/C ++, support the MFC class library, and provide a series of templates instead of the underlying construction, this greatly accelerates program development speed and efficiency, which is also a notable feature of Visual C ++.

However, Visual C ++ applications are ultimately process-oriented languages, and data processing programs are separated. When a program is modified or deleted, all the relevant parts of the program must be modified accordingly, which makes it difficult to maintain the program code.

In order to avoid this situation, the object-oriented design method is referenced in C. It encapsulates data and corresponding functions for data processing into a class, and uses class data variables as objects. Only functions of an object can access the data of this object.

In this way, other functions will not inadvertently destroy its content, so as to protect and hide data. This is C ++. Of course, object-oriented C ++ also supports multiple inheritance, templates, Operator overloading, inline function definition, preprocessing, macros, Global static class variables, nested class definitions, and so on.

C ++ is too complex. Any enterprise that uses C ++ developers will pay more for it, because there are few and fewer excellent C ++ programmers. Based on the needs of software enterprise, people naturally need a simple and easy-to-use, object-oriented approach.

The safe and flexible "Next Generation Windows Services" (NGWS) application language, so C # appeared. It comprehensively simplifies the functions of C ++, making it easier to learn than C ++. It neither has the pointer concept of C ++ "Tragic", nor does it have the "stupid" operation similar to ":", "." and "->.

Therefore, we can also say that C # is the language that programmers must master. However, we cannot ignore this point. Language is always a programmer's tool. Who is simple and easy to use, supports the latest technology, and can develop software quickly and effectively.

Currently, selecting C ++ means selecting a Visual C ++ application instead of a C ++ Builder. This is the first headache for C ++ programmers. Because VC is the same as Windows 98/NT, the size of Visual C ++ applications with the same function is much smaller than that of C ++ Builder after compilation. Moreover, its stability and improvement programs are much stronger than those of C ++ Builder.

However, the name "Visual C ++" has misled many people who think they have bought a completely Visual programming system, similar to Visual Basic, and in the first few days, there was always such an illusion. However, people soon realized that they must actually write and read C ++ code.

Although the Visual C ++ wizard can save time and improve correctness, programmers must understand the code generated by the Wizard. The most important thing is that they must understand Microsoft Foundation Class (MFC) library structure and the internal working mode of the Windows operating system.

Many C/C ++ DOS platform programmers regard this work method as a "boring and difficult" process. Although the new version of Visual C ++ 6.0 provides a console application type that allows DOS programmers to easily access the development of the MFC application, the above drawbacks cannot be fundamentally changed.

When Visual C ++ is selected, you must choose MFC, a program structure, and a programming style. However, because MFC is a product of the same generation of OWL, it has lagged behind the VCL era. From the development of ATL-based WTL, we can reverse the problem of MFC. This is probably the most embarrassing part for Visual C ++ programmers.

However, for the moment, we will not mention the embarrassment of the outdated MFC. Simply changing the appearance of the application, the Visual C ++ application is far from enough. For example, to change the font and background of a widget, You have to regenerate a class, while VB only needs to change the attributes. This is evident from the popularity of Websites designed for Visual C ++.

In addition, Visual C ++ programmers often feel another embarrassment. A small BMP and jpg image shows a simple event in Visual Basic, so VC actually needs so much code, in addition, many subtle Errors often occur in the development of database applications, which makes programmers very angry. What's more, if someone still wants to use Visual C ++ to write Internet/Intranet programs, it is simply self-seeking.

Although, a good Visual C ++ application pays a higher salary than other programmers. However, his effort is not comparable to that of other programmers. He not only needs to pay high training fees, but also bears a 90% unsuccessful probability. This is probably the most worrying thing for Visual C ++ programmers.

Of course, we didn't advise you to give up using the Visual C ++ application. On the contrary, it is quite supported. Because the program structures and algorithms written in C/C ++ can be accepted by more people, after all, C has affected the entire 20 years. But now, can we still rely on it to "make a living?

I believe you already have your own answer. Of course, the reason we jumped out was to hope that programmers could not only think about it in this respect, but more importantly, we cannot blindly follow the tide of software development in our country, we should focus on the software industry, the Internet industry, and the information industry. We should also have our own destinations. Isn't there enough inspiration from India's software giants?

  1. Differences between standard input implementation methods in C and C ++
  2. How does the C ++ compiler allocate storage space for Const constants?
  3. Basic Conception and method of C ++ Class Library Design
  4. Several Methods for converting C ++ Language
  5. How to better compile C ++ code

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.