In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what are the characteristics of C++". In daily operation, I believe many people have doubts about the characteristics of C++. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the questions about "what are the characteristics of C++?" Next, please follow the editor to study!
1. The general rule of WIN32 is not to use MFC, but to use the program written by API function.
2. The characteristic of C++ has a history of many years. MFC is a simple package based on Windows API. Its core architecture is based on the "Document/View" architecture (a concept considered trendy 20 years ago) and the message flow mechanism. The library hasn't changed much since VC6. The scope of MFC encapsulation includes GUI,IO, database, network programming and so on. However, many api necessary for system development are not encapsulated, so developers generally deal with business-related tasks on the basis of MFC.
In fact, many people use MFC only to take advantage of the encapsulation of its GUI part. The GUI processing of this library is not very efficient, and sometimes the code related to UI processing accounts for half or more of the entire project. Overall, this is an aging library, and Microsoft has not made any major improvements or updates over the past 10 years, except for tinkering with MFC. If you ask MFC, how long will he live? Well, that's a problem. If one day MFC is gone, Microsoft has no other products to replace it at this level.
3. The CLR library is released with .net Framework 2 and VS2005. The core implementation of the library is the same as that of Framework VB.net. Are based on the common language runtime. .net Framework encapsulates the api of a large number of systems and provides them to developers in the form of class libraries.
The CLR library in C++ can use the parts related to native code, and C++ can't cover the asp.net part yet. C++ in the CLR library subverts a lot of the tradition of C++. It can even be said that C++ here is not a cloak, but does other things in C++ 's skin. C++ here is more like C # or similar language.
It is worth mentioning that the part about C++/CLI has not been accepted by C++ yet, and recently Microsoft's proposal about C++/CLI standardization was rejected by C++ Standardization Committee. So C++/CLI is still the opinion of Microsoft at present.
4. ATL is used to write COM programs. The ATL library also seems to be very old, at least when I came into contact with VC. This library can be traced back to COM components, because the purpose of ATL is to help developers better interact with COM. When did the thing COM come into being?
I don't know, all I know is that C++ has a 16-bit version, and when Windows upgrades to 32-bit, COM also upgrades to 32-bit. COM, like some encapsulated class objects, provides some standard methods for you to use by encapsulating the api of the system.
So whatever components are in the system, you can use any method in ATL. So ATL can not only write ActiveX, but also can have window, can also have other. Sometimes some functions released by Microsoft are only released in the form of COM components, such as MSXML, at this time MFC is not appropriate, it is necessary to deal with ATL.
But ATL is not very good at dealing with UI, so Microsoft engineers have an open source UI framework called WTL, which is designed to deal with UI. The disadvantage of the ATL library is that, as a template library, it will be troublesome when there is an error, and the error prompt will be incorrect.
At this point, the study of "what are the characteristics of C++" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.