In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will give you a detailed explanation on how to develop C++Builder. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
C++Builder is an integrated development environment developed by Borland. C++Builder is a professional C++ development environment. It can provide fast, efficient and flexible compiler optimization. I hope you can learn what you want.
This face-saving product for Borland in the market is not only no different from Borland's pillar product Delphi in interface style, but also directly copied Delphi's VCL (Visual Component Library) library inside the product. As a result, code developed in C++Builder is inherently contagious in Delphi style and looks very similar to the Pascal language (the following code is taken from the sample code of C++Builder 6.0):
Class TFormClrDlg: public TForm {published: / / IDE-managed Components TColorDialog * ColorDialog; TButton * Button; TPanel * Panel1; void fastcall ButtonClick (TObject * Sender); private: / / User declarations public: / / User declarations virtual fastcall TFormClrDlg (TComponent* Owner);}
To be honest, although C++Builder is doing well in the market, I still don't like the way Borland deliberately confuses C++ with the Object Pascal language in Delphi. There may be decent reasons behind Borland's approach to improve product versatility and shorten product development cycles, but code developed with C++Builder is getting further and further away from the standard C++ style on the outside.
It is worth noting that Borland launched its next generation C++ development tool-C++BuilderX in 2003. The funny thing is that this time Borland actually built the C++ development environment on the PrimeTime platform implemented in the Java language, which more or less pushed the C++ language into an extremely awkward situation.
However, C++BuilderX also brings us some good news: in future releases, C++BuilderX will integrate the vxWindows framework library [5]. The C++ code developed under this framework obviously has more standard C++ style than code using VCL.
Microsoft's move to introduce C++ into the .NET environment is actually even more radical than Borland. In terms of style alone, code developed with Visual C++ .NET may have many different styles, such as MFC, ATL, Standard C++, .NET managed code, and so on. Of course, some of the fresh blood injected by .NET managed code into C++ is the impact on C++ itself:
# using using namespace System; using namespace System::Reflection; using namespace System::Security::Permissions; public _ value enum SomeStuff {E1 = 1, e17 = 17} [attribute (AttributeTargets::Class, AllowMultiple=true)] public _ _ gc class ABC {public: ABC (int _ gc []) {} ABC () {} ABC (int) {} ABC (int, float) {} ABC (SomeStuff) {} ABC (String*) {} int rgnField _ gc []; double rgdField _ gc []; double dField;}
The above code comes from the sample program in MSDN. Seeing the new features and technologies that Microsoft has aggressively introduced for C++Builder, such as garbage collection, Attribute properties, and so on, I see the almost unorthodox language style of .NET managed code.
I don't know whether I should cheer for Microsoft's efforts to develop a common language platform or be frustrated that C++ is increasingly playing a supporting role in the .NET drama in the shadow of the C # language. Perhaps, the language style and programmer's feelings are trivial things in the eyes of Microsoft, how can they compare with the grand strategy of .NET and the powerful empire of Microsoft?
On how to carry out the development of C++Builder to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.