VC++ LoadLibrary fails with error 127 (The specified program could not be found)

  The reason is generally because the DLL or its dependent DLL uses a higher version of the API, and the function in the DLL cannot be found at runtime.

  Use the dependency tool to see what may be the case: the first dependent dll file has red in the small square

        

  Normally, it should look like this:

  

  Solution : When VS compiles the dll, please make sure that *.h , *.lib and *.dll of the dependent dynamic link library are consistent.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325015802&siteId=291194637