Показать сообщение отдельно
  #8  
Старый 17.06.2007, 13:56
ART ART вне форума
Продвинутый
 
Регистрация: 13.02.2006
Адрес: Магнитогорск
Сообщения: 669
Репутация: 14745
По умолчанию

procedure TForm1.PluginExecute(FileName:string);
var
PlugExec : procedure;
handle : Thandle;
begin
handle := LoadLibrary(Pchar(FileName)); //Загружаем dll
if handle <> 0 then begin
@plugExec := GetProcAddress(handle,'PluginExec');
PlugExec;
FreeLibrary(handle);
end;
end;
Ответить с цитированием