Loads a dynamic link library (DLL)int sm_slib_load(char *lib_name);
- The name of the dynamic library to load. The name can include its path. If
lib_nameis already loaded, Panther moves the library to the top of the stack of loaded libraries.
sm_slib_loadmakes the functions and other resources in
lib_nameavailable 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_nameomits a path, Panther searches for the library in these locations:
- Panther's working directory
- Windows directory
- Windows system directory
- The executable's startup directory
- The list of directories mapped in a network
Note: In the Windows distribution, Panther automatically loads the DLLs
USER, in that order. All functions in these libraries are available for installation.
All loaded libraries are automatically unloaded on program exit.