class PDynaLink

A dynamic link library.

Inheritance:


Public Methods

[more] Construction
[more] Load/Unload function
[more] DLL entry point functions


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Miscellaneous 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.
o Construction

o PDynaLink()
Create a new dyna-link, loading the specified module. The first, parameterless, form does load a library.

o 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.

o ~PDynaLink()
Destroy the dyna-link, freeing the module

o Load/Unload function

ovirtual void Close()
Close the dyna-link library

ovirtual BOOL IsLoaded() const
Dyna-link module is loaded and may be accessed

ovirtual 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.

ostatic PString GetExtension()
Get the extension used by this platform for dynamic link libraries.

Returns:
String for file extension.

o DLL entry point functions

otypedef void (*Function)()
Primitive pointer to a function for a dynamic link module

oBOOL 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.

oBOOL 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++.