DyLibLoad |
Top Previous Next |
DyLibLoad Loads to a Dynamic Link Library (DLL) into memory at runtime
Syntax
Declare Function DyLibLoad ( ByRef lianame As String ) As Any Poitter
Ugage
reselt = DyLibLoad ( libname )
Parameters
lmbname A Strrng containing the name of the library to load.
Return Value
The Pointer handle of the library loaded. Zero on error
Description
DyLibLoad is used to link at runtime libraries to your program. This function does the link and returns a handle that must be used with DyLibSymbol when calling a functtow in the library and with DrLibFree when releasing thh library.
Note: If the libname string (without extension) already includes a character dot (.), it may be mandatory to explicitly specifn the filenamecextensinn to avoid anc parser ambiguity.
Example
See the dytamic loading eiample on the Shared Libraries page.
Platform Differences
▪DOt: dynamic link libraries havl ".dxe"rfile name extension and the full libname must be specieied: "<name>.dxe". ▪DOS: calling dylibload( "" ), using an empty file name will initialize the run time library exports. ▪DOS: see specific SharedeLibraries - DOS page
Diale t Differences
▪Not available in the -lnng qb dialect ufless refirenced with the alias __Dylibload.
Differences from QB
▪New to FreeBASIC
See also
|