Показать сообщение отдельно
  #7  
Старый 03.07.2011, 10:37
Аватар для NumLock
NumLock NumLock вне форума
Let Me Show You
 
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
По умолчанию

Цитата:
LoadLibrary
Return Values
If the function succeeds, the return value is a handle to the module.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Код:
var
  h: THandle;
begin
  h:=LoadLibrary('dll.dll');
  if h=0 then ShowMessage(SysErrorMessage(GetLastError));
end;
__________________
Пишу программы за еду.
__________________
Ответить с цитированием