help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'dynlibs' (#rtl)

LoadLibrary

Load a dynamic library and return a handle to it.

Declaration

Source position: dynlibs.pas line 36

function LoadLibrary(

  Name: AnsiString

):TLibHandle;

Description

LoadLibrary loads a dynamic library in file Name and returns a handle to it. If the library cannot be loaded, NilHandle is returned.

No assumptions should be made about the location of the loaded library if a relative pathname is specified. The behaviour is dependent on the platform. Therefore it is best to specify an absolute pathname if possible.

Errors

On error, NilHandle is returned.

See also

UnloadLibrary

  

Unload a previously loaded library

GetProcedureAddress

  

Get the address of a procedure or symbol in a dynamic library.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505