| 46 | } |
| 47 | |
| 48 | DynamicLibrary::FunctionPointer DynamicLibrary::findSymbol(const std::string& symbol) { |
| 49 | // Try to lookup the symbol address |
| 50 | FunctionPointer address = GetProcAddress(_library, symbol.c_str()); |
| 51 | |
| 52 | // Emit a warning if the lookup failed |
| 53 | if (address == 0) { |
| 54 | rConsoleError() << "GetProcAddress failed: '" << symbol << "'" << std::endl; |
| 55 | rConsoleError() << "GetLastError: " << FormatGetLastError(); |
| 56 | } |
| 57 | |
| 58 | return address; |
| 59 | } |
| 60 | |
| 61 | std::string DynamicLibrary::getName() const |
| 62 | { |
no test coverage detected