You are on page 1of 712

BORLAND C++BUILDER.

C++Builder Borland,
++.

, Borland C++ Borland Delphi.

19
1- .
21
1.
23
C++Builder?
23
IDE C++Builder
24
Hello World
26
Hello World, II Win32
28
++
33
++
34

34
++
35
++
37
++
39
main()
43

45

47

51

52

52

52

53
2.
55
if
55

59
for
60
while
62
do-while
63
goto
63
continue break
64
switch
65

66
extern
69

69

71

71

3. , ++


const
new delete
new
delete

new[] delete[]
++

,
-

4. -
?

-
-
this?

73
76
77
77
77
78
79
79
80
81
82
83
85
87
89
91
92
92
93
95
95
96
96
98
99
100
101
101
101
102
102
103
103
104
104
106
108
109
110
112
113
115
122

5. ++

?
?
-

++
Windows Borland
Microsoft
?

,
C++Builder VCL
VCL ++
VCL


...

6. IDE C++Builder:
C++Builder
, C++Builder

C++Builder



124
126
127
129
130
131
132
132
133
133
135
135
136
138
138
139
139
140
141
141
142
142
154
155
157
158
158
162
163
163
164
165
165
167
168
168
172
173
175
175
176
176


,
,
++
C++Builder









Properties
Events
MDI-
1:
2: File | Open File | Save As
3: Window
4: MDI
5: About

7.










, !



176
177
179
181
182
182
183
188
188
188
191
192
193
194
195
196
197
197
199
201
201
202
204
205
205
206
206
209
209
209
210
211
212
216
217
218
219
221
230
231
238
244
245

1- .
2- .
8. VCL


Name

Align
Color

Enabled
Font

ParentColor, ParentCtl3D, ParentFont ParentShowHint


Tag



TStrings
Windows

ListBox ComboBox


Label
ScrollBar
Panel
...

Execute
File Open File Save
Color
Font
Find Replace

246
246
246
247
247
249
251
253
253
254
254
256
256
256
258
258
259
260
261
261
262
262
263
265
266
267
270
273
274
281
282
282
283
284
284
285
287
288
288
289
289
289
291


9. C++Builder









-
C++Builder

-
, C++Builder

10.







Forms
Application
++
Pascal
Linker
Directories/Conditionals
C++Builder



291
293
293
294
297
298
300
300
302
303
304
308
309
311
313
313
314
320
321
321
322
322
325
325
325
325
327
330
331
332
333
335
336
340
340
342
343
344
348
350
351
355
355

11.
?






Run to Cursor


Watch Properties





Evaluate/Modify

CPU View
Go to Address


: TRACE WARN
GPF

12. C++Builder







355
356
357
359
360
360
361
362
363
365
365
366
367
367
368
369
369
370
372
375
375
376
377
377
378
380
380
382
383
384
385
385
386
387
389
389
390
392
393
394
395
396
398



WinSight: Windows
Windows




WinSight

grep.exe
implib.exe
touch.exe
tdump.exe
Tools
Configure Tools

Preferences
Library
Palette

13.






Onldle

...
C++Builder


QuickReport

399
399
401
402
403
404
404
405
406
408
409
410
411
412
413
413
415
415
417
417
418
419
419
420
421
423
423
423
429
436
436
436
438
438
440
440
441
443
445
445
451
451
452

14.
-

HelpContext
-


: try, catch throw
try catch






TRegistry
TRegistry

Windows


Windows
,

2- .
3- .
15. OLE, ActiveX OCX
Autosrv Autocon

Olemdi Olesdi
Olemdi

453
454
454
455
456
456
459
459
460
461
461
464
465
466
467
467
468
469
471
472
473
474
475
475
477
483
484
486
487
488
493
494
494
494
495
496
497
511
513
514
518
524
525

OCX

16. C++Builder
,

C++Builder,
TSession
TDatabase
TTable
TQuery
TStoredProc
TBatchMove
TDataSource
TUpdateSQL
TField

17.




18.
TDatabase
BDE

/

526
526
527
527
527
527
529
529
532
534
535
537
541
549
554
558
560
561
563
566
566
566
567
567
569
569
569
573
575
579
580
580
580
581
581
583
583
584
586
589
593
595
595

19. DLL
DLL
?
DLL?
DLL
DLL
, DLL
DLL

DLL
DLL


#include DLL

DLL
DLL C++Builder
DLL
DLL
DLL

20.







-.





595
596
596
597
597
597
598
601
602
602
603
604
607
608
612
613
614
614
615
615
618
618
620
621
621
621
623
623
625
625
627
627
627
628
629
631
631
632
633
634
634
635
636



TFlashingLabel:



Install Components
FlashingLabel





21. C++Builder Delphi


C++Builder Delphi
C++Builder Delphi




Delphi C++Builder





3- .
22. Internet

Internet
Web-

636
636
637
642
643
645
645
646
647
648
648
649
653
654
659
660
660
661
661
663
663
664
664
664
665
665
665
665
665
665
666
666
667
667
667
667
667
668
669
671
671
672
673

23. ++ C++Builder

:
++ C++Builder
_automated
_classid
_closure
_declspec
_int8, _intl6, _int32, _int64
_property
_published

.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

675
681
681
681
682
682
683
683
684
686
687
687
687
687
688
688
690
691
691
691
692
692
693
693
693
694
694
695
695
696
696
697
697
697
698
698
699
699
699
700
700
700
701

21
22
23

701
702
702