I had a question about how to get the DLL directory on a Windows system.
The situation is as follows:
I have a dll and exe file. The exe file must load the DLL to run. These 2 modules are in different directories. Moreover, the DLL is volatile. Now I need to get the DLL at runtime.
How can i do this?
Thanks in advance.
Do you need to find where the DLL loads it or find the path from which it was loaded?
The algorithm for finding the path to the DLL is documented in MSDN, and you can use SearchPath to search for the path to the system.
, DLL, GetModuleFileName. , LoadLibrary, GetModuleHandle, hinstDLL DllMain DLL.
, - . exe , DLL . , LoadLibrary().
BTW, , COM. , DLL- CLSID, .
Source: https://habr.com/ru/post/1740092/More articles:Does jquery create a complex histogram with a fleet? - jqueryКак отобразить подтверждение, которое не удалось выполнить в моем Rails unit test? - ruby-on-railsto lock a file so that it is not deleted - c ++What is a linked cursor list? [C ++] - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1740091/connecting-multiple-buttons-to-one-action&usg=ALkJrhhz9x0x_dMRuBm2gvcmHHKHMOFVdwjQuery next () for elements not next to each other - jqueryNotification framework for java - javaNHibernate stored procedure problem - nhibernateWhat happens first? Does anyone know how the Apache server will handle this request? - securitySetting a registry value based on a dialog in a visual studio setup project - visual-studio-2008All Articles