#include <dynalink.h>
Inheritance diagram for PDynaLink:

DLL entry point functions | |
| typedef void(*) | Function () |
| Primitive pointer to a function for a dynamic link module. | |
| BOOL | GetFunction (PINDEX index, Function &func) |
| BOOL | GetFunction (const PString &name, Function &func) |
Load/Unload function | |
| virtual BOOL | Open (const PString &name) |
| virtual void | Close () |
| virtual BOOL | IsLoaded () const |
| virtual PString | GetName (BOOL full=FALSE) const |
| static PString | GetExtension () |
Protected Attributes | |
| void * | dllHandle |
| PString | name |
| typedef void(*) PDynaLink::Function() |
Primitive pointer to a function for a dynamic link module.
| PDynaLink::PDynaLink | ( | ) |
Create a new dyna-link, loading the specified module. The first, parameterless, form does load a library.
| PDynaLink::PDynaLink | ( | const PString & | name | ) |
Create a new dyna-link, loading the specified module. The first, parameterless, form does load a library.
| name | Name of the dynamically loadable module. |
| PDynaLink::~PDynaLink | ( | ) |
Destroy the dyna-link, freeing the module.
| PDynaLink::PDynaLink | ( | ) |
Create a new dyna-link, loading the specified module. The first, parameterless, form does load a library.
| PDynaLink::PDynaLink | ( | const PString & | name | ) |
Create a new dyna-link, loading the specified module. The first, parameterless, form does load a library.
| name | Name of the dynamically loadable module. |
| PDynaLink::~PDynaLink | ( | ) |
Destroy the dyna-link, freeing the module.
| virtual BOOL PDynaLink::Open | ( | const PString & | name | ) | [virtual] |
| name | Name of the dynamically loadable module. |
| virtual void PDynaLink::Close | ( | ) | [virtual] |
Close the dyna-link library.
| virtual BOOL PDynaLink::IsLoaded | ( | ) | const [virtual] |
Dyna-link module is loaded and may be accessed.
| virtual PString PDynaLink::GetName | ( | BOOL | full = FALSE |
) | const [virtual] |
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.
| full | Flag for full or short path name |
| static PString PDynaLink::GetExtension | ( | ) | [static] |
Get the extension used by this platform for dynamic link libraries.
| BOOL PDynaLink::GetFunction | ( | PINDEX | index, | |
| Function & | func | |||
| ) |
Get a pointer to the function in the dynamically loadable module.
| index | Ordinal number of the function to get. |
| func | Refrence to point to function to get. |
Get a pointer to the function in the dynamically loadable module.
| name | Name of the function to get. |
| func | Refrence to point to function to get. |
void* PDynaLink::dllHandle [protected] |
PString PDynaLink::name [protected] |
1.5.1