class DynamicLibrary

Class that holds data about a dynamic library.

Public

Constructors

DynamicLibrary

DynamicLibrary(String name)

Constructs the dynamic library object and loads the library with the specified name.

Methods

~DynamicLibrary

~DynamicLibrary()

Load

void Load()

Loads the library.

Does nothing if library is already loaded.

Unload

void Unload()

Unloads the library.

Does nothing if library is not loaded.

GetName

const String &GetName() const

Get the name of the library.

GetSymbol

void *GetSymbol(const char *name) const

Returns the address of the given symbol from the loaded library.

name
The name of the symbol to search for.

Returns: If the function succeeds, the returned value is a handle to the symbol. Otherwise null.

Protected

Methods

DynlibError

String DynlibError()

Gets the last loading error.

Fields

mName

const String mName

mHandle

hInstance mHandle