本文整理汇总了C++中LibraryLoader::Load方法的典型用法代码示例。如果您正苦于以下问题:C++ LibraryLoader::Load方法的具体用法?C++ LibraryLoader::Load怎么用?C++ LibraryLoader::Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LibraryLoader
的用法示例。
在下文中一共展示了LibraryLoader::Load方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadDll
LibraryLoader* DllLoaderContainer::LoadDll(const char* sName, bool bLoadSymbols)
{
#ifdef LOGALL
CLog::Log(LOGDEBUG, "Loading dll %s", sName);
#endif
LibraryLoader* pLoader;
#ifdef TARGET_POSIX
pLoader = new SoLoader(sName, bLoadSymbols);
#elif defined(TARGET_WINDOWS)
pLoader = new Win32DllLoader(sName, false);
#else
pLoader = new DllLoader(sName, m_bTrack, false, bLoadSymbols);
#endif
if (!pLoader)
{
CLog::Log(LOGERROR, "Unable to create dll %s", sName);
return NULL;
}
if (!pLoader->Load())
{
delete pLoader;
return NULL;
}
return pLoader;
}
示例2: LoadDll
LibraryLoader* DllLoaderContainer::LoadDll(const char* sName, bool bLoadSymbols)
{
#ifdef LOGALL
CLog::Log(LOGDEBUG, "Loading dll %s", sName);
#endif
LibraryLoader* pLoader;
#ifdef _LINUX
if (strstr(sName, ".so") != NULL || strstr(sName, ".vis") != NULL || strstr(sName, ".xbs") != NULL
|| strstr(sName, ".mvis") != NULL || strstr(sName, ".dylib") != NULL || strstr(sName, ".framework") != NULL || strstr(sName, ".pvr") != NULL)
pLoader = new SoLoader(sName, bLoadSymbols);
else
#elif defined(_WIN32)
if (1)
pLoader = new Win32DllLoader(sName);
else
#endif
pLoader = new DllLoader(sName, m_bTrack, false, bLoadSymbols);
if (!pLoader)
{
CLog::Log(LOGERROR, "Unable to create dll %s", sName);
return NULL;
}
if (!pLoader->Load())
{
delete pLoader;
return NULL;
}
return pLoader;
}
示例3: LoadDll
//to do
LibraryLoader* LoaderContainer::LoadDll(const char* sName, bool bLoadSymbols)
{
#ifdef LOGALL
LOGDEBUG("Loading dll %s", sName);
#endif
LibraryLoader* pLoader = new Win32DllLoader(sName);
if (!pLoader)
{
LOGERR("Unable to create dll %s", sName);
return NULL;
}
if (!pLoader->Load())
{
delete pLoader;
return NULL;
}
#ifdef LOGALL
LOGDEBUG("Dll %s has been succesfully loaded.", sName);
#endif
return pLoader;
}