git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2949
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
@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);
return handle;
}
+
+/* static */
+void
+wxDllLoader::UnloadLibrary(wxDllType handle)
+{
+ wxDllClose(handle);
+}
+
/* static */
void *
wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name)