]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxDllLoader::UnloadLibrary()
authorKarsten Ballüder <ballueder@usa.net>
Sat, 3 Jul 1999 19:34:48 +0000 (19:34 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Sat, 3 Jul 1999 19:34:48 +0000 (19:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynlib.h
src/common/dynlib.cpp

index 860088f690e34730678decf76a66ee2f3d635a2f..eb402a3dd9348d8a683509462ea5181fcaa1dbb8 100644 (file)
@@ -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);
index 0a161789d88aa40b6cd5936d4357f604a585c641..a72fd4dac16e7e5738ff93ca2045f7606e59f898 100644 (file)
@@ -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)