Sign in Join
FPDoc Onlineexperiment

dynlibs unit

Cross-platform support for dynamically loadable libraries.

The Dynlibs unit provides support for dynamically loading shared libraries. It is available only on those platforms that support shared libraries. The functionality available here may only be a part of the functionality available on each separate platform, in the interest of portability.

On UNIX platforms, using this unit will cause the program to be linked to the C library, as most shared libraries are implemented in C and the dynamical linker too.

Procedures and functions

FreeLibraryfunctionFor compatibility with Delphi/Windows: Unload a library.
GetLoadErrorStrfunctionReturn a description of the last error during load/get procedure address operations.
GetProcAddressfunctionFor compatibility with Delphi/Windows: Get the address of a procedure.
GetProcedureAddressfunctionGet the address of a procedure or symbol in a dynamic library.
LoadLibraryfunctionLoad a dynamic library and return a handle to it.
SafeLoadLibraryfunctionSaves the control word and loads a library.
UnloadLibraryfunctionUnload a previously loaded library.

Types

HModuletypeAlias for TLibHandle type.
TLibHandletypeLibrary handle type.

Constants

NilHandleconstantCorrectly typed Nil handle - returned on error by .
SharedSuffixconstantExtension of shared library.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.