Using the RTL (Run-Time Library)

From Appmethod Topics
Jump to: navigation, search

Go Up to RTL

The Object Pascal Run-Time Library (or RTL) is composed of a number of base units that provide the underlying support for most of the 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 , 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 FireMonkey projects, or when you are writing your own classes.

Both Object Pascal and C++ applications can use the Object Pascal RTL. The Object Pascal RTL is composed of an extensive library of .pas files that are compiled by the Object Pascal compiler . Then the Object Pascal compiler emits C++ header files for the use of the C++ compilers. Thus, both Object Pascal and Appmethod C++ use the Object Pascal RTL. The Object Pascal and C++ classes and members of the RTL are described in the Libraries Reference along with the FireMonkey library.

Note: Do not confuse the Object Pascal RTL with the C run-time library. Many of the routines in the Object Pascal RTL perform functions that are similar to those in the C run-time library, but can be distinguished because Object Pascal 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, Object Pascal RTL functions are declared in the header of an Object Pascal unit, while C RTL functions are defined in a C++ header file (.h).




  • The System unit contains most of the Object Pascal 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