Cover image for Sams teach yourself Borland C++ Builder 4 in 24 hours
Title:
Sams teach yourself Borland C++ Builder 4 in 24 hours
Author:
Reisdorph, Kent.
Personal Author:
Publication Information:
Indianapolis, Ind. : Sams, [1999]

©1999
Physical Description:
xiii, 451 pages : illustrations ; 23 cm + 1 computer optical disc (4 3/4 in.)
Language:
English
Title Subject:
ISBN:
9780672316265
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Item Holds
Searching...
QA76.73.C153 R457 1999 Book and Software Set Central Closed Stacks
Searching...

On Order

Summary

Summary

PLEASE PROVIDE COURSE INFORMATION PLEASE PROVIDE


Table of Contents

Introductionp. 1
Hour 1 Getting Started with C++Builderp. 3
Introducing C++Builderp. 3
Launching C++Builderp. 4
Writing a Simple Program with C++Builderp. 7
Building a Win32 Console Applicationp. 9
C++ Language Primerp. 15
Variables and Identifiersp. 17
Data Typesp. 18
Operatorsp. 21
Summaryp. 23
Workshopp. 24
QandAp. 24
Quizp. 24
Answersp. 24
Exercisesp. 25
Hour 2 Functions, Arrays, and Stringsp. 27
Functionsp. 27
The main() Functionp. 31
Arraysp. 34
Character Arraysp. 36
String-Manipulation Functionsp. 38
Arrays of Stringsp. 41
Summaryp. 41
Workshopp. 41
QandAp. 41
Quizp. 42
Answersp. 42
Exercisesp. 42
Hour 3 Conditionals, Loops, and Switchesp. 45
Controlling Program Flow with ifp. 45
Controlling Program Flow with Loopsp. 50
The for Loopp. 51
The while Loopp. 54
The do-while Loopp. 55
continue and breakp. 56
Controlling Program Flow with switchp. 57
Summaryp. 59
Workshopp. 59
QandAp. 60
Quizp. 60
Answersp. 60
Exercisesp. 60
Hour 4 Scope, Structures, and Functions in C++p. 61
Scope of Variables in C++p. 61
Structures in C++p. 63
Arrays of Structuresp. 65
Headers and Source Filesp. 65
An Example Using Structuresp. 67
Functions in C++p. 72
Function Overloadingp. 72
Casting Variable Typesp. 73
Default Parameters for Functionsp. 74
Class Member Functionsp. 76
Inline Functionsp. 76
Summaryp. 77
Workshopp. 77
QandAp. 78
Quizp. 78
Answersp. 78
Exercisep. 78
Hour 5 Pointers, References, and Memory Allocationp. 79
Working with Pointersp. 79
Local Versus Dynamic Memory Usagep. 81
Dynamic Allocation and Pointersp. 82
Dereferencing a Pointerp. 84
Using Referencesp. 88
Passing Function Parameters by Reference and by Pointerp. 89
The new and delete Operatorsp. 92
Summaryp. 94
Workshopp. 94
QandAp. 94
Quizp. 95
Answersp. 95
Exercisesp. 95
Hour 6 C++ Classes and Object-Oriented Programming, Part Ip. 97
What's a Class?p. 98
Anatomy of a Classp. 99
Class Access Levelsp. 99
Data Hidingp. 99
Constructorsp. 101
Destructorsp. 104
Class Data Membersp. 105
Class Member Functionsp. 107
Summaryp. 109
Workshopp. 109
QandAp. 110
Quizp. 110
Answersp. 110
Exercisep. 110
Hour 7 C++ Classes and Object Oriented Programming, Part IIp. 111
What's this?p. 112
An Example Using Classesp. 114
Inheritancep. 121
Virtual Functionsp. 122
Multiple Inheritancep. 125
Summaryp. 127
Workshopp. 127
QandAp. 127
Quizp. 128
Answersp. 128
Exercisesp. 128
Hour 8 Class Frameworks and the Visual Component Modelp. 129
Frameworks Fundamentalsp. 129
The Visual Component Libraryp. 132
Propertiesp. 133
Methodsp. 138
Eventsp. 139
The Sender Parameterp. 143
C++Builder and VCLp. 145
Summaryp. 146
Workshopp. 147
QandAp. 147
Quizp. 147
Answersp. 147
Exercisesp. 148
Hour 9 Exploring the VCLp. 149
VCL String Classesp. 149
Who Needs a String Class?p. 150
The AnsiString Classp. 151
Using Setsp. 155
VCL Classes and Componentsp. 157
Form and Application Classesp. 158
Component Classesp. 159
And That's Not Allp. 162
Summaryp. 163
Workshopp. 163
QandAp. 163
Quizp. 164
Answersp. 164
Exercisep. 164
Hour 10 Exploring the C++Builder IDEp. 165
Projects in C++Builderp. 166
Files Used in C++Builder Projectsp. 167
Source Code Unitsp. 172
The C++Builder Main Menu and Toolbarp. 173
Using the Component Palettep. 175
Navigating the Component Palettep. 175
Placing Components on a Formp. 175
The Component Palette Context Menup. 177
Creating a Multiple-Form Applicationp. 177
Compiling, Building, and Linkingp. 180
The Object Inspectorp. 183
The Component Selectorp. 184
The Properties Pagep. 185
The Events Pagep. 187
Summaryp. 189
Workshopp. 189
QandAp. 189
Quizp. 189
Answersp. 190
Exercisesp. 190
Hour 11 C++Builder Formsp. 191
Main Window Formsp. 191
Dialog Box Formsp. 192
Dialog Boxes in Traditional Windows Programsp. 192
Dialog Boxes in C++Builderp. 193
Secondary Windows Versus Dialog Boxesp. 197
The Multiple Document Interface Modelp. 198
Key Properties or Formsp. 198
Published Propertiesp. 198
Runtime-Only Propertiesp. 201
Form Methodsp. 202
MDI Methodsp. 203
Form Eventsp. 203
Summaryp. 204
Workshopp. 205
QandAp. 205
Quizp. 205
Answersp. 205
Exercisesp. 206
Hour 12 Writing an MDI Applicationp. 207
The Master Planp. 207
Step 1 Create the Main Window Formp. 208
Step 2 Write Code for the File Open and File Save As Menu Itemsp. 210
Step 3 Write Code for the Window Menup. 212
Step 4 Create the MDI Child Formp. 213
Step 5 Create the About Boxp. 214
Step 6 Add a Toolbarp. 215
Adding Buttons to the Toolbarp. 215
Making the Toolbar Buttons Functionalp. 216
Adding Bitmaps to the Toolbar Buttonsp. 217
Tying up Loose Endsp. 219
Summaryp. 220
Workshopp. 221
QandAp. 221
Quizp. 221
Answersp. 221
Exercisesp. 222
Hour 13 Working With the Form Designerp. 223
Placing Componentsp. 223
The Form Designer Gridp. 224
Selecting Componentsp. 225
Selecting Multiple Componentsp. 225
Selecting Groups of Componentsp. 226
Selecting Components Within Componentsp. 226
Moving Componentsp. 227
Ordering, Cutting, Copying, and Pasting Componentsp. 228
Sizing Componentsp. 229
Aligning Componentsp. 230
The Alignment Palette and the Alignment Dialog Boxp. 230
The Align Propertyp. 233
Setting the Tab Orderp. 234
Building a Sample Applicationp. 235
Step 1 Start a New Applicationp. 236
Step 2 Add a Toolbarp. 236
Step 3 Add a Status Barp. 237
Step 4 Add the Memo Componentp. 237
Run the Programp. 238
Summaryp. 239
Workshopp. 239
QandAp. 239
Quizp. 239
Answersp. 240
Exercisesp. 240
Hour 14 Working with the Menu Designerp. 241
Creating a Main Menup. 241
Adding a Main Menu to the Formp. 242
Creating a Menu by Handp. 242
Inserting a Menu from a Templatep. 244
Deleting Menu Itemsp. 245
Inserting Menu Itemsp. 246
Moving Menu Itemsp. 246
Modifying Properties in Batchesp. 247
Creating Submenusp. 247
Adding Shortcutsp. 248
Finishing Touchesp. 248
Writing the Codep. 249
Running the Programp. 256
Pop-Up Menus (Context Menus)p. 256
Summaryp. 258
Workshopp. 258
QandAp. 258
Quizp. 259
Answersp. 259
Exercisesp. 259
Hour 15 Working with the Visual Component Library (VCL)p. 261
Visual and Nonvisual Componentsp. 262
The Name Propertyp. 263
Important Common Propertiesp. 264
Alignp. 265
Colorp. 265
Cursorsp. 266
Enabledp. 267
Fontp. 268
Hintp. 269
ParentColor, ParentCt13D, ParentFont, and ParentShowHintp. 269
Other Common Propertiesp. 270
Primary Methods of Componentsp. 271
Common Eventsp. 272
TStringsp. 274
Summaryp. 276
Workshopp. 276
QandAp. 276
Quizp. 276
Answersp. 276
Exercisesp. 277
Hour 16 Standard Windows Control Componentsp. 279
Edit Controlsp. 279
The ListBox and ComboBox Componentsp. 284
Using Button Controlsp. 287
ModalResultp. 287
Defaultp. 288
Cancelp. 288
Enabledp. 289
The Button Componentp. 289
The BitBtn Componentp. 289
Glyphp. 290
Kindp. 290
The SpeedButton Componentp. 291
GroupIndexp. 291
AllowAllUpp. 292
Downp. 292
Radio Buttons and Check Boxesp. 293
The Label Componentp. 294
The ScrollBar Componentp. 295
The Panel Componentp. 295
Summaryp. 296
Workshopp. 296
QandAp. 296
Quizp. 296
Answersp. 297
Exercisesp. 297
Hour 17 Common Dialogs and the Object Repositoryp. 299
The Common Dialog Boxesp. 299
The Execute Methodp. 300
The File Open and File Save Dialog Boxesp. 300
The File Open Picture and File Save Picture Dialog Boxesp. 303
The Color Dialog Boxp. 303
The Font Dialog Boxp. 303
The Find and Replace Dialog Boxesp. 304
Introduction to the Object Repositoryp. 305
Object Repository Pages and Optionsp. 306
The Copy, Inherit, and Use Buttonsp. 307
Using the Object Repositoryp. 308
Creating New Objects from the Object Repositoryp. 309
Adding Objects to the Object Repositoryp. 310
Adding Projects to the Object Repositoryp. 312
Object Repository Housekeepingp. 312
Summaryp. 315
Workshopp. 315
QandAp. 315
Quizp. 316
Answersp. 316
Exercisesp. 316
Hour 18 Adding Functions, Data Members, and Resourcesp. 317
Adding Functions and Data Members to Codep. 317
Managing Class Declarationsp. 318
Adding a Function to Your Codep. 319
Adding a Class Data Memberp. 321
Deleting C++Builder-Generated Codep. 321
Using Component Templatesp. 322
Using Resource Filesp. 325
Summaryp. 333
Workshopp. 333
QandAp. 333
Quizp. 334
Answersp. 334
Exercisep. 334
Hour 19 Managing Projects with C++Builderp. 335
Project Groupsp. 335
The Project Manager Windowp. 337
The Project Manager Context Menusp. 338
The Project Manager Toolbar and Keyboard Commandsp. 340
Creating and Using Project Groupsp. 340
Adding Unitsp. 341
Removing Unitsp. 342
Viewing Units or Formsp. 342
Building Projects or Project Groupsp. 342
Understanding Project Optionsp. 343
The Forms Pagep. 344
The Application Pagep. 345
The Compiler Pagep. 347
The C++ and Advanced Compiler Pagesp. 349
The Linker Pagep. 349
The Directories/Conditionals Pagep. 350
The Version Info Pagep. 352
The Packages Pagep. 353
Summaryp. 353
Workshopp. 354
QandAp. 354
Quizp. 354
Answersp. 354
Exercisesp. 355
Hour 20 Using the Code Editorp. 357
Basic Editor Operationsp. 358
Opening and Saving Filesp. 359
Highlighting Textp. 360
Undop. 361
Find and Replacep. 361
Find in Filesp. 363
Getting Helpp. 364
Specialized Editor Featuresp. 364
Code Templatesp. 365
Using Bookmarksp. 366
Finding Matching Braces and Parenthesesp. 368
The Code Editor Context Menup. 368
Changing the Editor Optionsp. 369
The Editor Pagep. 370
The Display Pagep. 371
The Colors Pagep. 372
Summaryp. 373
Workshopp. 373
QandAp. 373
Quizp. 374
Answersp. 374
Exercisesp. 374
Hour 21 Deploying Applications Using Packagesp. 375
Defining a Packagep. 376
Runtime Packagesp. 376
Design Packagesp. 376
Static Linking Versus Dynamic Linkingp. 377
Static Linkingp. 377
Dynamic Linkingp. 378
Static Linking Your Applicationsp. 379
Linking Your Applications Dynamicallyp. 380
Summaryp. 381
Workshopp. 381
QandAp. 382
Quizp. 382
Answersp. 382
Exercisep. 382
Hour 22 Printing from C++Builder Applicationsp. 383
The Common Printing Dialog Boxesp. 384
The Print Dialog Boxp. 384
The Print Setup Dialog Boxp. 386
Printing the Easy Wayp. 387
The Print() Method for Formsp. 387
The Print() Method for the RichEdit Componentp. 387
Printing the Hard Wayp. 388
Managing the Device Contextp. 388
The TPrinter Class and the Printer() Functionp. 389
Adding Print Capability to Your Applicationp. 391
Printing a Bitmapp. 394
Summaryp. 395
Workshopp. 395
QandAp. 395
Quizp. 395
Answersp. 396
Exercisep. 396
Hour 23 Using the Debuggerp. 397
The Debugging Menu Itemsp. 398
Setting and Clearing Breakpointsp. 400
Watching Variablesp. 402
ToolTip Expression Evaluationp. 403
The Watch List Context Menup. 404
Adding Variables to the Watch Listp. 405
Using the Watch Listp. 405
Stepping Through Your Codep. 407
Summaryp. 410
Workshopp. 410
QandAp. 410
Quizp. 411
Answersp. 411
Exercisesp. 411
Hour 24 New Features in C++Builder 4p. 413
Dockable IDE Windowsp. 413
Dock Sitesp. 414
Experimenting with Dockable Windowsp. 414
No Docking, Pleasep. 416
Docking Support for VCL Componentsp. 417
Dock Sitesp. 417
Floating Windowsp. 418
Code Editor Featuresp. 419
Code Parametersp. 419
Code Completionp. 420
Code Insight Optionsp. 420
New Bookmark Menu Itemsp. 421
Package Managerp. 421
New VCL Componentsp. 422
TActionList and TActionp. 422
TControlBarp. 423
TMonthCalendarp. 423
New VCL Propertiesp. 423
Docking Propertiesp. 423
Constraintsp. 424
Anchorp. 424
Bitmaps for Menusp. 424
C++ Language Featuresp. 425
Project Options Enhancementsp. 425
Summaryp. 425
Workshopp. 426
QandAp. 426
Quizp. 426
Answersp. 426
Exercisesp. 426
Appendix A Installing C++Builder 4p. 427
Running C++Builderp. 429
Registering Your Copy of C++Builderp. 429
Indexp. 431