Programming Guide |
Loads a dynamic link library (DLL)
int sm_slib_load(char *lib_name);
lib_name
- The name of the dynamic library to load. The name can include its path. If
lib_name
is already loaded, Panther moves the library to the top of the stack of loaded libraries.
Windows
sm_slib_load
makes the functions and other resources inlib_name
available for installation. Resources can include bitmaps and icons. The library must be sharable—on Windows, a dynamic link library (DLL). To install a function from a loaded library, call sm_slib_install. After a function is installed, it can be called directly from a JPL module.If the argument supplied for
lib_name
omits a path, Panther searches for the library in these locations:
- Panther's working directory
- Windows directory
- Windows system directory
- The executable's startup directory
- SMPATH
- The list of directories mapped in a network
Note: In the Windows distribution, Panther automatically loads the DLLs
KEYBOARD
,KERNEL
, andUSER
, in that order. All functions in these libraries are available for installation.All loaded libraries are automatically unloaded on program exit.