Chapter 1 The Integrated Development Environment of Borland

Chapter 1 The Integrated Development Environment of Borland C++ Builder Windows Programming, C. -S. Shieh, KUAS EC, 2005 1

Getting Borland C++ Builder • Borland C++ Builder 5. 0 Professional had been installed in our lab. • Trial version of Borland C++ Builder 6. 0 Enterprise can be download from Borland’s web site at http: //www. borland. com Windows Programming, C. -S. Shieh, KUAS EC, 2005 2

First Glance at BCB 5. 0 Object Inspector Component Palette Code Editor Windows Programming, C. -S. Shieh, KUAS EC, 2005 3

BCB and VCL Components • Each VCL (Visual Component Library) component has – Properties: can be set at design time or modified by code at run time to change its behavior or appearance. – Methods: callable functions for performing certain functions – Responsive events: where we implement our algorithms • Windows programming with BCB – Graphic user interface design • Choose VCL components • Set up their prosperities – Implement event handlers • Implement desired functionalities • Modify VCL components’ prosperities Windows Programming, C. -S. Shieh, KUAS EC, 2005 4

The Concept of Application and Project • In BCB, an application is a project. • A project may consists of many files – – – – . bpr: project file. dfm: form file. cpp: C++ source program file. h: C++ header file. res: resource file. obj: object file. exe: executable file. tds: debug symbol file • It is strongly recommended to place all related files in the same directory. Windows Programming, C. -S. Shieh, KUAS EC, 2005 5

Your First Windows Application in BCB • Sample code: add. zip • Useful Functions – Str. To. Int() – Int. To. Str() Windows Programming, C. -S. Shieh, KUAS EC, 2005 6

What You Should Do • Download and install your Borland C++ Builder • Walk through the following sections in our textbook – 1. 1 -1. 9 • Learning by doing! Windows Programming, C. -S. Shieh, KUAS EC, 2005 7
- Slides: 7