I have a dll "mytest.dll", which when loaded through LoadLibrary()returns NULL (and 127 as GetLastError()). If I use DependencyWalker on "mytest.dll", it says that it should load correctly and that all DLLs are found correctly. Running the DependencyWalker profiling option on the exe host gives me this section in the log:
LoadLibrary()
GetLastError()
00: 00: 55.099: Loaded "mytest.DLL" at address 0x07860000 by thread 0xBBC. Successfully hooked module. 00: 00: 55.115: First chance exception 0xC0000139 (DLL Not Found) occurred in "NTDLL.DLL" at address 0x76E24285 by thread 0xBBC. 00: 00: 55.115: Unloaded "mytest.DLL" at address 0x07860000 by thread 0xBBC. 00: 00: 55.115: LoadLibraryW ("mytest.dll") returned NULL by thread 0xBBC. Error: The specified procedure could not be found (127).
Is there a way to debug this to find out what the Not Found DLL message that is looking for NTDLL.DLL reports is looking for? Or should I look elsewhere for the source of the problem?
Please note that loading the same "mytest.DLL" from another application is working correctly.
Can your application try to call a specific DLL function via GetProcAddress after an initial load (possibly) that is not found? Is this a 32 or 64 bit application?
If it loads correctly in another application, as you assume, it probably has the correct entry point.
google search , , , , - ( ) DLL. DLL Exescope .
, DLL (, DLL)?
Process Monitor FileMon SysInternals , myTest.dll , .
DependencyWalker (, Windows). DLL, LoadLibrary, , DependencyWalker (, ini , , DependencyWalker ).
DLL , . DLL-, - . DLL , dll , .
, FileMon. , - SysInternals , FileMon , , ProcMon.
Source: https://habr.com/ru/post/1707212/More articles:Set permission in QTCapture? - cocoaЕсть ли способ использовать константные переменные в определениях других констант? - cIE does not clear subsequent floats - cssWPF. Какие условия должны быть выполнены, чтобы использовать привязку данных в элементах пользовательского элемента управления? - wpfHow can I delete perl regex lines? - regexIn PHP, can I get the total number of case statements in a switch statement? - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1707214/how-to-load-static-data-in-mirth-avoid-many-roundtrips-to-a-database&usg=ALkJrhimYGx8ssmsI0-AMTRUm-baPsXr3wIs a lambda expression from this possible? - c #List of training topics - c ++ASP.NET MVC Routing Constructs Links Based on the Current URL - asp.net-mvcAll Articles