31ae813286
The problem is the way Windows searches for dynamically linked DLLs (Dynamic-Link Library Search Order). For example, LuaScript.dll is the plug-in DLL, loaded by Notepad++.exe, and lua53.dll is the auxiliary DLL, required by LuaScript.dll and also by user-installed Lua modules. Both DLLs should be located in \plugins\LuaScript. But, when Notepad++ calls LoadLibrary to load LuaScript.dll, Windows will not find the dynamically linked lua53.dll, hence the LoadLibrary call fails. This happens, because Windows will look in the application directory (which is the location of Notepad++.exe), and not in the LuaScript.dll directory. To make Windows search in the LuaScript.dll directory, Notepad++ needs to call LoadLibraryEx with the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag. Close #5802, close #5853 |
||
---|---|---|
.. | ||
bin | ||
gcc | ||
installer | ||
misc/chameleon | ||
scintilla.original.forUpdating | ||
src | ||
Test/FunctionList | ||
visual.net |