Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2005.02.27;
Скачать: [xml.tar.bz2];

Вниз

Порядок поиска DLL из приложения   Найти похожие ветки 

 
Ega23 ©   (2005-02-10 10:48) [0]

Если путь к dll не указан явным образом, то каков порядок поиска DLL при динамической загрузке?
Директория программы + всё, что в PATH указано?


 
TUser ©   (2005-02-10 11:10) [1]

Сначала в своей папке
Потом - в папке WINNT
Потом - в WINNT\System32


 
Reindeer Moss Eater ©   (2005-02-10 11:25) [2]

Папка из которой запущено приложение.
Текущая папка процесса.
Каталог Windows
и так далее до папок перечисленных в PATH


 
Ega23 ©   (2005-02-10 11:26) [3]

Thanks!


 
VMcL ©   (2005-02-10 12:11) [4]

>>Ega23 ©   (10.02.05 10:48)

LoadLibrary + F1:

the function searches for the file in the following sequence:

The directory from which the application loaded.
The current directory.
The system directory. Use the GetSystemDirectory function to get the path of this directory.
The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched.
Windows Me/98/95:  This directory does not exist.
The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
The directories that are listed in the PATH environment variable.

Windows Server 2003, Windows XP SP1:  The default value of HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode is 1 (current directory is searched after the system and Windows directories).
Windows XP:  If HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode is 1, the current directory is searched after the system and Windows directories, but before the directories in the PATH environment variable. The default value is 0 (current directory is searched before the system and Windows directories).


 
VMcL ©   (2005-02-10 12:16) [5]

P.S.
Для Windows XP SP1 и Windows Server 2003 есть ещё SetDllDirectory().


 
Reindeer Moss Eater ©   (2005-02-10 12:19) [6]

Есть еще место.
HKLM\Software\Microsoft\Windows\CurrentVersion\AppPath


 
Ega23 ©   (2005-02-10 12:22) [7]

2 VMcL ©   (10.02.05 12:11) [4]

Спасибо, я уже сам нашёл...  :о)

З.Ы.
Ты почему до сих пор трезвый???  :о)



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2005.02.27;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.066 c
14-1107433216
Usser
2005-02-03 15:20
2005.02.27
По поводу ноутбука


1-1108475251
BFG9k
2005-02-15 16:47
2005.02.27
Как найти место ошибки по адресу?


14-1107772373
Ivan Shikhalev
2005-02-07 13:32
2005.02.27
Кто-нибудь видел Hi Asm?


1-1108217032
Толян
2005-02-12 17:03
2005.02.27
Ран тайм


1-1108238932
Kladbische
2005-02-12 23:08
2005.02.27
Народ выручайте ! Как по нажатию кнопки в ListBox добавить





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский