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
FreeLibrary | function | For compatibility with Delphi/Windows: Unload a library. |
GetLoadErrorStr | function | Return a description of the last error during load/get procedure address operations. |
GetProcAddress | function | For compatibility with Delphi/Windows: Get the address of a procedure. |
GetProcedureAddress | function | Get the address of a procedure or symbol in a dynamic library. |
LoadLibrary | function | Load a dynamic library and return a handle to it. |
SafeLoadLibrary | function | Saves the control word and loads a library. |
UnloadLibrary | function | Unload a previously loaded library. |
Types
HModule | type | Alias for TLibHandle type. |
TLibHandle | type | Library handle type. |
Constants
NilHandle | constant | Correctly typed Nil handle - returned on error by . |
SharedSuffix | constant | Extension of shared library. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
