8 GetModuleFileNameA(NULL, buffer,
MAX_PATH);
9 std::string::size_type pos = std::string(buffer).find_last_of(
"\\/");
10 std::string currentPath = std::string(buffer).substr(0, pos);
12 std::string fullPath = currentPath +
"\\Resources.dll";
14 HMODULE hModule = LoadLibraryA(fullPath.c_str());
18 char err_buffer[1024];
19 LoadStringA(hModule, resourceID, (LPSTR)err_buffer,
MAX_PATH);
21 return std::string(err_buffer);;