Added wxDllLoader::UnloadLibrary()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
329e86bfde
commit
752c7d6bbd
@ -76,6 +76,8 @@ class wxDllLoader
|
||||
@return A handle to the loaded DLL. Use success parameter to test if it is valid.
|
||||
*/
|
||||
static wxDllType LoadLibrary(const wxString & libname, bool *success);
|
||||
/** This function unloads the shared library. */
|
||||
static void UnloadLibrary(wxDllType dll);
|
||||
/** This function returns a valid handle for the main program
|
||||
itself. */
|
||||
static wxDllType GetProgramHandle(void);
|
||||
|
@ -221,6 +221,14 @@ wxDllLoader::LoadLibrary(const wxString & lib_name, bool *success)
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
/* static */
|
||||
void
|
||||
wxDllLoader::UnloadLibrary(wxDllType handle)
|
||||
{
|
||||
wxDllClose(handle);
|
||||
}
|
||||
|
||||
/* static */
|
||||
void *
|
||||
wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name)
|
||||
|
Loading…
Reference in New Issue
Block a user