Hello. I am using QLibrary to load a dll file on Windows 7 x64, but it fails with the error message "The specified module could not be found". WinAPI function LoadLibrary also fails, however, I can load it with
LoadLibraryEx("C:\\Program Files (x86)\\VideoLAN\\VLC\\libvlc.dll", NULL, LOAD_WITH_ALTERED_SEARCH_PATH)
LoadLibraryEx("C:\\Program Files (x86)\\VideoLAN\\VLC\\libvlc.dll", NULL, LOAD_WITH_ALTERED_SEARCH_PATH)
To copy to clipboard, switch view to plain text mode
so the problem is somehow related to the search strategy specified with LOAD_WITH_ALTERED_SEARCH_PATH flag. I'd like my code to be cross-platform, so I am trying to use Qt instead of WinAPI, but how can I make it work with QLibrary?
Bookmarks