39 #include "blocxx/BLOCXX_config.h"
41 #if defined(BLOCXX_USE_DLL)
47 namespace BLOCXX_NAMESPACE
55 DLLSharedLibraryLoader::DLLSharedLibraryLoader()
57 ::SetCurrentDirectory(BLOCXX_DEFAULT_LIB_DIR);
62 DLLSharedLibraryLoader::loadSharedLibrary(
const String& filename)
const
64 if( filename.endsWith(
"libblocxx.dll") )
69 HINSTANCE libhandle = ::LoadLibrary(filename.c_str());
78 "LoadLibrary returned NULL. Error is: %1",
91 DLLSharedLibraryLoader::~DLLSharedLibraryLoader()
97 #endif // BLOCXX_USE_DLL