1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxDynamicLibrary documentation
4 %% Author: Vadim Zeitlin
6 %% Created: 14.01.02 (extracted from dllload.tex)
8 %% Copyright: (c) Vadim Zeitlin
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxDynamicLibrary
}}\label{wxdynamiclibrary
}
14 wxDynamicLibrary is a class representing dynamically loadable library
15 (Windows DLL, shared library under Unix etc.). It is implemented as a wrapper
16 to
\helpref{wxDllLoader
}{wxdllloader
}.
20 \helpref{wxDllLoader
}{wxdllloader
}
22 \membersection{wxDynamicLibrary::wxDynamicLibrary
}\label{wxdynamiclibrarywxdynamiclibrary
}
24 \func{}{wxDynamicLibrary
}{\void}
26 \func{}{wxDynamicLibrary
}{\param{const wxString\&
}{name
}}
28 Constructor. Second form calls
\helpref{Load
}{wxdynamiclibraryload
}.
30 \membersection{wxDynamicLibrary::Detach
}\label{wxdynamiclibrarydetach
}
32 \func{wxDllType
}{Detach
}{\void}
34 Detaches this object from its library handle, i.e. the object will not unload
35 the library any longer in its destructor but it is now the callers
36 responsability to do this.
38 \membersection{wxDynamicLibrary::IsLoaded
}\label{wxdynamiclibraryisloaded
}
40 \constfunc{bool
}{IsLoaded
}{\void}
42 Returns true if the library was successfully loaded, false otherwise.
44 \membersection{wxDynamicLibrary::Load
}\label{wxdynamiclibraryload
}
46 \func{bool
}{Load
}{\param{const wxString\&
}{name
}}
48 Loads DLL into memory.
50 Returns true if the library was successfully loaded, false otherwise.
52 \membersection{wxDynamicLibrary::Unload
}\label{wxdynamiclibraryunload
}
54 \func{void
}{Unload
}{\void}
56 Unloads the library from memory.
58 \membersection{wxDynamicLibrary::GetSymbol
}\label{wxdynamiclibrarygetsymbol
}
60 \constfunc{void*
}{GetSymbol
}{\param{const wxString\&
}{name
}}
62 Returns pointer to symbol
{\it name
} in the library or NULL if the library
63 contains no such symbol.