Hey, I'm trying to get the path to the dll located in the same folder as my exe file. It seems to use one of QueryFullProcessImageName()or GetModuleFileName()to get the path to the executable executable, and then use string manipulation to instead make the path to the desired library.
QueryFullProcessImageName()
GetModuleFileName()
Unfortunately, none of these two functions allows you to know the size buffer in advance. I tried to skip zero for the nSize parameter, but this does not have the desired effect.
What is the best practice way to do this?
Windows API MAX_PATH , , 1 .
MAX_PATH
Windows . , MAX_PATH 270 , NTFS () 32767 . Unicode, , , Windows Explorer , .
, - , , -, , Unicode ( ) / ( DOS 8.3 ) / , , / .
hth.,
GetModuleFilename , . , , . , .
GetModuleFilename
Source: https://habr.com/ru/post/1788770/More articles:Get facebook "Photos of others" with api schedule - facebookGetting parameter name from scala function - scalaUsing Hibernate Search to Evaluate Results - hibernateCan using Valgrind on Linux also help when the application is compiled on Solaris? - chttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788769/how-to-move-from-one-textfields-to-next-textfield-on-tabbar-buttons-action&usg=ALkJrhgByejS0Oyv8IseGYOvGcaHp6_ZoQсборка dllimport/dllexport и статических библиотек в Visual С++ - staticData structures provided by the Win32 API? - windowssqlcmd: Login failed for user 'NT AUTHORITY \ ANONYMOUS LOGON' - sql-serverPython dictionaries. How to save a new value from overwriting the previous value? - pythonМогу ли я использовать клиентские сертификаты для аутентификации в WCF, не требуя учетных записей в AD или Windows? - wcf-securityAll Articles