A dynamic link library.
Inheritance:
Public Methods
| Construction
|
| Load/Unload function
|
| DLL entry point functions
|
Inherited from PObject:
Public Methods
-
Run Time Type functions
-
I/O functions
Public Members
-
Comparison functions
Documentation
A dynamic link library. This allows the loading at run time of code
modules for use by an application.
Construction
PDynaLink()
- Create a new dyna-link, loading the specified module. The first,
parameterless, form does load a library.
PDynaLink( const PString & name )
- Create a new dyna-link, loading the specified module. The first,
parameterless, form does load a library.
- Parameters:
- name - Name of the dynamically loadable module.
~PDynaLink()
- Destroy the dyna-link, freeing the module
Load/Unload function
virtual void Close()
- Close the dyna-link library
virtual BOOL IsLoaded() const
- Dyna-link module is loaded and may be accessed
virtual PString GetName( BOOL full = FALSE ) const
- Get the name of the loaded library. If the library is not loaded
this may return an empty string.
If full is TRUE then the full pathname of the library
is returned otherwise only the name part is returned.
- Parameters:
- full - Flag for full or short path name
- Returns:
- String for the library name.
static PString GetExtension()
- Get the extension used by this platform for dynamic link libraries.
- Returns:
- String for file extension.
DLL entry point functions
typedef void (*Function)()
- Primitive pointer to a function for a dynamic link module
BOOL GetFunction( PINDEX index, Function & func )
- Get a pointer to the function in the dynamically loadable module.
- Parameters:
- index - Ordinal number of the function to get.
func - Refrence to point to function to get.
- Returns:
- TRUE if function was found.
BOOL GetFunction( const PString & name, Function & func )
- Get a pointer to the function in the dynamically loadable module.
- Parameters:
- name - Name of the function to get.
func - Refrence to point to function to get.
- Returns:
- TRUE if function was found.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.