65,184
社区成员




HMODULE
WINAPI
LoadLibraryW(
__in LPCWSTR lpLibFileName
);
#ifdef UNICODE
#define LoadLibrary LoadLibraryW
#else
#define LoadLibrary LoadLibraryA
#endif // !UNICODE
void Plugin::loadPlugin(string pluginName)
{
int length = pluginName.length();
WCHAR *pluginFile = new WCHAR[length+1];
MultiByteToWideChar(0, 0, pluginName.c_str(), -1, pluginFile, length+1);
// load plugin into memory
pluginLibrary = LoadLibrary(pluginFile);