C++ Builder C++ - . C++ Builder , C++, .
1.3.1 C++ Builder Borland C++
C++ Builder Borland C++ . C++ Builder - C++. Borland C++ ( 3.1. 4.5 5.0), , . , .
C++ Builder , OWL MFC VCL. - Windows. -, , - . C++Builder, OWL C++ . , . VCL, , C++Builder. 45, OWL , : " C++Builder". OWL , .
Borland C++ 5.0 OWL MFC , C++Builder VCL. - : C++Builder , Windows , , . , . VCL , , . . OWL MFC VCL Internet no http://www.borland.com/bcppbuilder/papers
|
|
, .
1.3.2 C++Builder Delphi
, , , Delphi, C++Builder Windows . Delphi RAD. C++Builder , C++, Delphi. .
, , , . , C++Builder Delphi, , , , .
- " " . . , , . C++ Delphi - , Delphi, C++Builder, . - Windows.
C++Builder Delphi:
, . Delphi C++Builder .
Delphi, , , C++Builder.
Delphi , . , Delphi C++Builder. C++ , . .
Delphi, - , C++.
, C++Builder Delphi Windows.
1.3.2.1 ?
, , : " ".
|
|
( ), Delphi , . Windows, , , Delphi. . , Borland Windows , - , .
C++Builder, , C++, , . C++ , , - C++Builder. , C++ , Delphi, C++ , "".
, , . Delphi, C++Builder , . . - .
1.3.2.2 ?
" C++Builder" - . , , , C++ . , , . VCL, Delphi, .
( ) .
1.3.2.3 Delphi C++Builder
C++Builder , - C++ ( ) Delphi ( PAS). Delphi 2.0: ,, , , - . Delphi C++Builder .
C++Builder:
Delphi ( DLL). DLL .
OLE Delphi ActiveX. OLE Borland C++Builder, (Microsoft Word, Excel Visual Basic).
Delphi (VMTs).
1.3.2.4 C++Builder Delphi
C++ ( ), C++Builder Delphi. , :
, C++, - Delphi 97 .
|
|
, C++ DLL, Delphi - Delphi CDECL, PASCAL STDCALL.
, C++, Delphi .
, ( OBJ) Delphi . , , .
1.3.2.5 Delphi C++Builder
, Delphi C++Builder. , , - Delphi C++. " ". , - , . , .
, , - C++. (heap) "" (.), :
Label.Text:= 'Hello There;';
Ha C++ , , . C++, , "", :
TMyCiass myClass;
myClass.DoSomething();
. . C++ new, - (->):
TMyCiass* myClass = new TMyCiass;
myClass->DoSomething();
delete myClass;
, , , VCL ( VCL ) . VCL .
(: =), C++ - (=). , Delphi:
Label.Top:= 20;
C++ :
Label->Top = 20;
C++, , .
(=), - (==). , Delphi:
if Labell.Text = Label2.Text then... C++ :
if (Labell->Text == Label2->Text) {... } , - , . "Possibly incorrect assignment", , . -, .
. Delphi:
Label. Text:= ' ' C++ :
Label->Text = " ";
, , , . , C++ , .
. Char 0 255. C++ (unsigned char) Char , (signed char) -127 +128. :
: Char;
:= #65;
:= Char(0rd(''));
C++ :