Show: Delphi C++
Display Preferences

Using the RTL (Run-Time Library)

From RAD Studio
Jump to: navigation, search

Go Up to RTL


The Delphi Run-Time Library (or RTL) is composed of a number of base units that provide the underlying support for most of the VCL and FireMonkey component libraries . The RTL includes global routines, utility classes such as those that represent streams and lists, and classes such as TObject, TPersistent, and TComponent.

Although closely allied with FireMonkey and VCL, the RTL does not include any of the components that appear on the Tool Palette. Instead, the classes and routines in the RTL are used by the components that do appear on the Tool Palette, and are available for you to use in application code in either VCL projects or FireMonkey projects, or when you are writing your own classes.

Both Delphi and C++ applications can use the Delphi RTL. The Delphi RTL is composed of an extensive library of .pas files that are compiled by the Delphi compiler (such as DCC32.exe). Then the Delphi compiler emits C++ header files for the use of the C++ compilers. Thus, both Delphi and C++Builder use the Delphi RTL. The Delphi and C++ classes and members of the RTL are described in the Libraries Reference along with the VCL and FireMonkey libraries.

Note: Do not confuse the Delphi RTL with the C run-time library. Many of the routines in the Delphi RTL perform functions that are similar to those in the C run-time library, but can be distinguished because Delphi RTL function names begin with a capital letter (such as FindClose), while C RTL function names begin with a lowercase letter and sometimes a leading underscore (such as _findclose). Also, Delphi RTL functions are declared in the header of a Delphi unit, while C RTL functions are defined in a C++ header file (.h).

Examples:

Sections

Notes:
  • The System unit contains most of the Delphi Run-Time Library (RTL).
  • The following sections or groups of topics discuss many of the classes and routines that make up the RTL and illustrate how to use these RTL members.
  • However, many important classes and routines of the run-time library are not mentioned in the topics below. These other routines include, but are not limited to, the following:
  • The help also contains lists of RTL-related functions and types; see API Categories Index.

See Also

Personal tools
In other languages
Previous Versions
Assistance