]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynlib.cpp
Corrected valtext.cpp for disabled controls; added Dialog Editor fixes
[wxWidgets.git] / src / common / dynlib.cpp
index 447fb80a87e7026eded1bc30861bd8ae218a354f..cf218301c29e82f3e3711d9a29c3f8f8a76d4f7c 100644 (file)
             return (void *)0;
     }
 #elif defined(__WINDOWS__)
-    #define wxDllOpen(lib)                  ::LoadLibrary(lib)
+    #include <windows.h>
+
+    // using LoadLibraryEx under Win32 to avoid name clash with LoadLibrary
+    #ifdef __WIN32__
+        #define wxDllOpen(lib)                  ::LoadLibraryEx(lib, 0, 0)
+    #else   // Win16
+        #define wxDllOpen(lib)                  ::LoadLibrary(lib)
+    #endif  // Win32/16
     #define wxDllGetSymbol(handle, name)    ::GetProcAddress(handle, name)
     #define wxDllClose                      ::FreeLibrary
 #else