Borland C++ Builder 6 开发指南:集成开发环境与类库解析

5星 · 超过95%的资源 需积分: 10 52 下载量 200 浏览量 更新于2024-12-03 收藏 15.3MB PDF 举报
"《Borland C++ Builder 6 Developer’s Guide》是针对Borland C++ Builder 6开发人员的一份详细指南,涵盖了使用该IDE进行C++应用程序开发的各种方面。这份文档由Borland Software Corporation出版,包含了C++Builder 6的主要特性和工具的介绍,以及关于类库使用的深入指导。" 在本指南中,作者首先介绍了手册的基本内容,包括各个章节的主题。第一章“Introduction”(介绍)概述了手册中涵盖的主要内容,例如: 1. **What’s in this manual?** 这部分将读者引导到手册的不同部分,解释了每个章节将讨论的关键主题,如C++Builder的集成开发环境(IDE)、类库的使用、项目创建、代码编辑、编译、调试以及应用程序的部署。 2. **Manual conventions** 阐述了手册中使用的各种符号、约定和格式,以帮助读者更好地理解和导航文档。 3. **Developer support services** 提供了关于Borland提供的开发者支持服务的信息,可能包括技术支持、文档获取和其他相关资源。 接下来的部分,如第二章“Programming with C++Builder”,着重于实际的开发过程: 1. **Integrated development environment** 描述了C++Builder的IDE,它为开发者提供了一个集成了设计、编码、编译和调试功能的平台。 2. **Designing applications** 讨论了如何设计应用程序,包括创建项目的步骤以及布局和组件的选择。 3. **Creating projects** 解释了如何创建新项目,设置项目属性,并管理项目文件。 4. **Editing code** 介绍了代码编辑器的特性,如代码自动完成、错误检查和重构工具。 5. **Compiling applications** 阐述了编译过程,包括配置编译选项和解决编译错误。 6. **Debugging applications** 提到了调试器的使用,如设置断点、查看变量值和跟踪执行流程。 7. **Deploying applications** 说明了如何将应用程序打包和发布,使其能够在目标机器上运行。 第三章“Using the class libraries”深入探讨了C++Builder的类库: 1. **Understanding the class libraries** 介绍了类库的基础知识,它是开发C++Builder应用程序的核心组成部分。 2. **Properties, methods, and events** 展示了如何使用对象的属性来设置和获取状态,方法来执行操作,以及事件来响应用户或系统的动作。 3. **User events** 和 **System events** 分别讲解了用户触发和系统级别的事件处理。 4. **Objects, components, and controls** 解析了对象、组件和控件的概念,它们是如何构建图形用户界面(GUI)的基石。 5. **TObject, TPersistent, TComponent, TControl, TWinControl/TWidgetControl** 这些章节详细介绍了C++Builder中的类层次结构,帮助开发者理解这些基类的作用及其在继承体系中的位置。 该手册还提到了有关专利和版权的信息,提醒用户遵循C++Builder的许可协议,并指出文档本身并不授予任何专利使用权。 《Borland C++ Builder 6 Developer’s Guide》是开发者掌握C++Builder 6 IDE和类库的宝贵资源,提供了从项目构思到最终部署的全方位指导。通过深入学习,开发者可以有效地利用C++Builder的功能,创建高效、健壮的Windows应用程序。
2007-06-22 上传
Introduction My desire to write a book about C++Builder has some history. I have beenvery impressed with Borland since their first edition of C++ (and prior editionsof C), because they have always made an effort to ensure quality. Unfortunately, there are very few books on the market about Borland C++or C++Builder, compared to other products like Visual Basic or VisualC++. Since different authors have different viewpoints of a product, I always prefer to consult more than one book to gain in-depth knowledge, as every author provides a unique service with his or her expertise. Also,authors are limited by their own onstraints; every book does not cover every aspect of the product. When I first used MIDAS a few years ago,there was not a book available to help me do my project. I spent a lot of time investigating answers for my questions in an iterative manner. I can say that my frustration over that prompted me to write this book on C++Builder. As with every release, C++Builder 6 is very rich with features. Best of all, you can build distributed objects in different technologies in the real RAD (rapid application development) way. To my knowledge, this is the only C++ implementation that enables you to build C++ applications on the fly, just as easy as with Delphi or Visual Basic. For programmers who are apprehensive of C++, I would recommend learning C++ using this product. I paid exclusive attention to three main subject areas of C++Builder 6:Windows application development, database development, and distributed systems development. Throughout the duration of this project, I attempted to make the book useful for every type of reader—a novice in C++Builder, a programmer experienced with the product, and those who already have books on prior editions of C++Builder. The entire book contains 12 chapters.Some chapters are relatively larger than we normally see in manybooks. To keep the flow of my thoughts continuous (which is very helpful for the reader), I did not want to break the chapters into smaller pieces. I divided the 12 chapters into two parts. The first part presents topics onWindows application development as well as database development. The second part is dedicated to distributed systems development and a few miscellaneous topics. Thus, I present more than 200+ pages on several distributed architectures, including DataSnap,WebBroker,WebSnap,BizSnap, CORBA, and TCP/IP. I also created a number of example projects,which you may directly compile on your computer, either for learning or for use in your own projects. Most of the source code for the examples is presented in the book and provided on the companion CD. However, you may need to have the Enterprise edition of C++Builder 6 to work on most of the second part of the book, since it covers advanced topics. For a couple of reasons, I did not present COM/ActiveX-related chapters in this book. The main reason is that almost all the available books on C++Builder present topics on COM-related technologies very well. In addition,Microsoft itself is drifting its focus away from COM-related technologies since they released the .NET framework, which would force many organizations to reduce the intensity of their COM-based application development. Slowly, many organizations will migrate their COM-based solutions to .NET or other distributed architectures.