Analysis on the VC ++ application environment

Source: Internet
Author: User

The VC ++ application is not only a C ++ compiler, but also a visual integrated development environment based on the Windows operating system. With the advent of its new version, the VC ++ application has become the preferred tool for professional development.

All C ++ books explain C ++ standards (C99, this IDE is about how to use Microsoft. Of course, it includes many things related to Windows programming, such as Windows API and MFC. If it is difficult, there will also be DLL, ATL, COM, some books also talk about C ++ in order to satisfy the authors who do not have C ++ basics ).

VC ++ applications basically follow the C ++ standard (in fact, the compatibility is relatively poor, only more than 70%, of course, many programmers do not use much incompatible ). If you want to learn the C ++ syntax, you can use VC ++ to practice it. If you have learned C ++, you can try Windows programming.

VC ++ is an IDE developed by Microsoft (integrated development environment). In other words, it is a development platform that uses c ++. some software is compiled here... in addition, there are VB, VF. just using different languages... however,

VC ++ is a C ++ programming environment on the Windows platform. To learn VC, you must understand the features of many Windows platforms and master the knowledge of MFC, ATL, and COM, which is difficult. For programming in Windows, you need to understand the message mechanism of Windows and the principle of callback functions. MFC is a packaging class of Win32API. You need to understand the structure of the View class, window class structure, and message flow; COM is a binary standard for code sharing. You need to understand its basic principles and so on.

As a mainstream development platform, VC has always been favored by programmers, but many people are hard at getting started with it. The main reason is that everyone has a wrong understanding of it, strictly speaking, VC ++ is not a language. Although it is closely related to C ++, if the image is similar, C ++ can be considered as an "Industrial Standard", while VC ++ is a "vendor standard" under an operating system platform ", the "vendor standards" are extended in compliance with the "industrial standards.

There are two main modes for VC ++ Application Development: win api and MFC. The traditional win api development method is cumbersome, while MFC is a re-encapsulation of win api, so MFC is more efficient than win api development, but in order to have a more comprehensive and meticulous understanding of WINDOWS development, here I will explain the relevant content of WIN API as the main line.

In other words, more people may be concerned about the conditions required for learning VC ++. Why is this door not broken? To learn VC well, you must have a good C/C ++ Foundation, and the necessary English reading ability is also essential, because a large number of technical documents are published in English.

The VC ++ application can be divided into three main parts:

1. developer Studio: This is an integrated development environment. 99% of our daily work is done on it. In addition, it is titled Microsoft Visual C ++ ", therefore, many people naturally think that it is Visual C ++.

As a matter of fact, although Developer Studio provides a good editor and a lot of Wizard, it does not actually have any compilation and linking functions. The hero behind the scenes who truly completes these tasks will be introduced later. We also know that Developer Studio is not specifically used for VC ++ applications. It is also used for other siblings of Visual Studio, such as VB, VJ, and VID. Therefore, do not regard Developer Studio as Visual C ++. It is only a shell of Visual C ++ at best. Please remember this!

2. MFC. Theoretically, MFC is not dedicated to Visual C ++, Borland C ++, C ++ Builder, and Symantec C ++. It can also process MFC. At the same time, writing code with Visual C ++ does not mean that you must use MFC. If you want to write SDK programs with Visual C ++ or use STL and ATL, there is no restriction.

However, Visual C ++ was originally created for MFC. Many features and language extensions in Visual C ++ are also designed for MFC, therefore, using Visual C ++ without MFC means that a large part of the functions in Visual C ++ are abandoned. However, Visual C ++ is not equal to MFC.

3. Platform SDK. This is the essence and soul of Visual C ++ and the entire Visual Studio, although we seldom have direct access to it. Generally speaking, the Platform SDK is centered on Microsoft C/C ++ compiler rather than Visual C ++. It is clear). It works with MASM and is supplemented by other tools and documentation.

As mentioned above, Developer Studio does not have the function of compiling a program. Who will accomplish this? It's CL, NMAKE, and many other command line programs. These programs that we don't see constitute the cornerstone of Visual Studio.

  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.