#include "wx/wxprec.h"
-#ifdef __BORLANDC__
-# pragma hdrstop
-#endif //__BORLANDC__
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
#if wxUSE_DYNLIB_CLASS
/* static */
wxDllType
-wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
+wxDllLoader::LoadLibrary(const wxString & lib_name, bool *success)
{
wxASSERT(success);
if ( !symbol )
{
wxLogSysError(_("Couldn't find symbol '%s' in a dynamic library"),
- symbname.c_str());
+ name.c_str());
}
return symbol;
}
#endif // __UNIX__
#endif
- bool success;
- handle = wxDllLoader::LoadDll(lib_name, &success);
+ bool success = FALSE;
+ wxDllType handle = wxDllLoader::LoadLibrary(lib_name, &success);
if(success)
{
lib = new wxLibrary(handle);