git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2708
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
@param success Must point to a bool variable which will be set to TRUE or FALSE.
@return A handle to the loaded DLL. Use success parameter to test if it is valid.
*/
@param success Must point to a bool variable which will be set to TRUE or FALSE.
@return A handle to the loaded DLL. Use success parameter to test if it is valid.
*/
- static wxDllType LoadDll(const wxString & libname, bool *success);
+ static wxDllType LoadLibrary(const wxString & libname, bool *success);
/** This function resolves a symbol in a loaded DLL, such as a
variable or function name.
@param dllHandle Handle of the DLL, as returned by LoadDll().
/** This function resolves a symbol in a loaded DLL, such as a
variable or function name.
@param dllHandle Handle of the DLL, as returned by LoadDll().
-wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
+wxDllLoader::LoadLibrary(const wxString & lib_name, bool *success)
if ( !symbol )
{
wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"),
if ( !symbol )
{
wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"),
#endif // __UNIX__
#endif
#endif // __UNIX__
#endif
- bool success;
- handle = wxDllLoader::LoadDll(lib_name, &success);
+ bool success = FALSE;
+ wxDllType handle = wxDllLoader::LoadDll(lib_name, &success);
if(success)
{
lib = new wxLibrary(handle);
if(success)
{
lib = new wxLibrary(handle);