Scenario Description:
position the breakpoint above the hmodule instance =:: LoadLibrary (Filename.c_str ()); function, when loading ueroutealg.dll , find that the handle is empty, and then by adding the following code:DWORD dwerror = GetLastError ();
at the back of the function, collect the error code that failed to load:127-The specified program could not be found. Click on the VS menu, then select Tools, click Error Lookup, enter 127.
Solution Analysis:
1) The general situation is that the program takes a dynamic load of the way to run, in the process of loading the DLL , found that the program needs to call the function in the DLL can not be found, causing an error.
2) From here it can be seen that a method is modified in the DLL , but it is not the case when the call is recorded by the header file.
Case analysis of DLL load failure