|
sysLoadLibrary |
|
sysLoadLibrary( const dllname) // name of library Loads a library (DLL or shared library) at runtime. OS/2: The Library is searched in all directories listed by LIBPATH in CONFIG.SYS, or in the environment variables BEGINLIBPATH and ENDLIBPATH. Win32: The Library is searched in the directory where CSL.EXE is (respectively your own VisualAge C++ Program using the CSL API), the current directory, and all directories listed in the PATH environment variable. Unixish systems: The Library is searched all directories listed in the LD_LIBRARY_PATH environment variable. To access any functions or identifiers of the library they have to be forward declared (usually by a .csl file). Example:
#loadLibrary 'ZcSysLib'
static const strLib = 'ZcStrLib'
#loadScript strLib+'.csl' // include forwards
main()
{
sysLoadLibrary(strLib); // load ZcStrLib.csl
sysLog(strUpper('john wayne'));
}
|
||||||||
| Copyright © IBK Landquart | Last revision: 27.05.2002 | << Back Top Next >> |