class PDynaLink: public PObject

A dynamic link library.

Inheritance:


Public

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


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous 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

ovoid Close()
Close the dyna-link library

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

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

Returns:
String for the library name.
Parameters:
full - Flag for full or short path 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.

Returns:
TRUE if function was found.
Parameters:
index - Ordinal number of the function to get.
func - Refrence to point to function to get.

oBOOL GetFunction( const PString & name, Function & func )
Get a pointer to the function in the dynamically loadable module.

Returns:
TRUE if function was found.
Parameters:
name - Name of the function to get.
func - Refrence to point to function to get.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.