Frameworks and Libraries

From RAD Studio
Jump to: navigation, search

Go Up to Main Page


A framework is software that you can customize and extend to fit your needs.
A library is a collection of implementations of subroutines, classes, etc. that you can reuse to develop software.

RAD Studio provides several frameworks and libraries that you can use to build your applications. For reference documentation, see the API Reference.

Application Frameworks

Application frameworks are frameworks that you can use to create applications.

One application can only use one application framework. You cannot use more than one application framework to build a single application. Before you start developing an application, you must decide which application framework you want to use.

GUI Application Frameworks

RAD Studio provides two different application frameworks to build graphical user interface (GUI) applications: the VCL and FireMonkey. For more information, see GUI Application Frameworks.

Multi-Tier Application Frameworks

RAD Studio provides the following application frameworks to create multi-tier applications:

Framework Description

RAD Server (EMS)

Mobile enterprise application platform (MEAP) that you can host in the cloud or on the premises, to expose custom REST APIs and enterprise database data.

DataSnap

Framework to allow client applications to access data and run subroutines of server applications that are on a common network.

Internet Application Frameworks

RAD Studio provides the following application frameworks to create internet applications:

Framework Description

Web Broker

Components to create web servers that can generate content, such as HTML or XML documents, as a response to a request URI.

Add Frameworks

As FireMokey pulls only some frameworks, your code may require access to more frameworks to compile successfully.

To pull more Frameworks, you must update and refresh the Software Development Kit (SDK) definition.

Before pulling more Frameworks, verify your current frameworks.

Verifying that a framework is pulled.

You can determine that a Framework is pulled by looking into the directory where you pull an SDK. In the directory, there is a folder named Frameworks, usually in the following direction:

System/Library/Frameworks

Inside the folder, you can find all the pulled frameworks, with the name <Name>.framework. For example, in the following image, you can verify that the SafariServices.framework is pulled.

Framework Pulled.png

Pulling Frameworks through the SDK Manager.

Follow the steps below to pull more frameworks through the SDK Manager:

  1. Select Tools > Options > Deployment > SDK Manager
  2. Select the SDK version of the platform you are working with.
  3. In the SDK Manager properties section, a list of Remote Paths is displayed. Click the ellipsis button (…) to change the path.
  4. Select the correct path framework and click OK.
    :SDK Manger.png
  5. Check the current properties and click Save.
  6. Go to the SDK location and verify that the framework was successfully pulled.
Tip: The framework path should stop at the folder that contains the <framework-name>.framework. The path should not contain the name of the framework. Example:
C:\Test\FCM\Firebase\Analytics
Tip: If you want a portable path, you can use omit the folders or files where the project is developed since the product uses a path relative to the project. Example:
\Firebase\Analytics

Libraries

You can use the following libraries in any application:

Native APIs of Platforms

RAD Studio provides units (Delphi) and header files (C++) that you can use to access the native API of the platform where your application is running:

  • Delphi: C:\Program Files (x86)\Embarcadero\Studio\22.0\source
  • C++: C:\Program Files (x86)\Embarcadero\Studio\22.0\include
Note: To make your code more portable and maintainable, use the RTL or your GUI framework instead of a native API of a specific platform.

The Tools API

RAD Studio provides its own API, the Tools API, which allows you to extend the IDE with new features.

See Also