void GetDllPath(std::string &dllpath)
{
//得到动态库路径后赋值给dllpath
TCHAR szDir[MAX_PATH];
HMODULE hModule;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPTSTR)InitRecognice, &hModule);
if (NULL != hModule)
{
GetModuleFileName(hModule, szDir, MAX_PATH);
}
wstring path_wstr = szDir;
string path_str;
WStringToString(path_wstr, path_str);
int pos = path_str.rfind("\\");
dllpath = path_str.substr(0, pos);
}