2002-01-14 11:40:44 -05:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Name: dynlib.tex
|
|
|
|
%% Purpose: wxDynamicLibrary documentation
|
|
|
|
%% Author: Vadim Zeitlin
|
|
|
|
%% Modified by:
|
|
|
|
%% Created: 14.01.02 (extracted from dllload.tex)
|
|
|
|
%% RCS-ID: $Id$
|
|
|
|
%% Copyright: (c) Vadim Zeitlin
|
|
|
|
%% License: wxWindows license
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
|
|
\section{\class{wxDynamicLibrary}}\label{wxdynamiclibrary}
|
|
|
|
|
|
|
|
wxDynamicLibrary is a class representing dynamically loadable library
|
|
|
|
(Windows DLL, shared library under Unix etc.). It is implemented as a wrapper
|
|
|
|
to \helpref{wxDllLoader}{wxdllloader}.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxDllLoader}{wxdllloader}
|
|
|
|
|
|
|
|
\membersection{wxDynamicLibrary::wxDynamicLibrary}\label{wxdynamiclibrarywxdynamiclibrary}
|
|
|
|
|
|
|
|
\func{}{wxDynamicLibrary}{\void}
|
|
|
|
|
|
|
|
\func{}{wxDynamicLibrary}{\param{const wxString\& }{name}}
|
|
|
|
|
|
|
|
Constructor. Second form calls \helpref{Load}{wxdynamiclibraryload}.
|
|
|
|
|
2003-03-03 20:48:47 -05:00
|
|
|
\membersection{wxDynamicLibrary::Detach}\label{wxdynamiclibrarydetach}
|
|
|
|
|
|
|
|
\func{wxDllType}{Detach}{\void}
|
|
|
|
|
|
|
|
Detaches this object from its library handle, i.e. the object will not unload
|
|
|
|
the library any longer in its destructor but it is now the callers
|
|
|
|
responsability to do this.
|
|
|
|
|
2002-01-14 11:40:44 -05:00
|
|
|
\membersection{wxDynamicLibrary::IsLoaded}\label{wxdynamiclibraryisloaded}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsLoaded}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true if the library was successfully loaded, false otherwise.
|
2002-01-14 11:40:44 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicLibrary::Load}\label{wxdynamiclibraryload}
|
|
|
|
|
|
|
|
\func{bool}{Load}{\param{const wxString\& }{name}}
|
|
|
|
|
|
|
|
Loads DLL into memory.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true if the library was successfully loaded, false otherwise.
|
2002-01-14 11:40:44 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicLibrary::Unload}\label{wxdynamiclibraryunload}
|
|
|
|
|
|
|
|
\func{void}{Unload}{\void}
|
|
|
|
|
|
|
|
Unloads the library from memory.
|
|
|
|
|
|
|
|
\membersection{wxDynamicLibrary::GetSymbol}\label{wxdynamiclibrarygetsymbol}
|
|
|
|
|
|
|
|
\constfunc{void*}{GetSymbol}{\param{const wxString\& }{name}}
|
|
|
|
|
|
|
|
Returns pointer to symbol {\it name} in the library or NULL if the library
|
|
|
|
contains no such symbol.
|
|
|
|
|
|
|
|
|