Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

DLL could not find the specified program process analysis

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Scene description

Locate the breakpoint above HMODULE instance =: LoadLibrary (filename.c_str ()); function, when loading test.dll, find the handle is empty, and then add the following code: DWORD dwError = GetLastError ()

Behind this function, the error code of load failure is collected: [127]-the specified program cannot be found. Click the VS menu, then select tools, click error finding, and enter 127th.

Resolution Analysis:

1) the general situation is that the program runs in the way of dynamic loading. In the process of loading DLL, it is found that the function that the program needs to call can not be found in DLL, thus causing an error.

2) you can see that a method was modified in DLL, but this is not the case when it is called through the header file.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report