В самой dll:
Код: Выделить всё
Function InfDisplayRes:String;
begin
InfDisplayRes:=IntToStr(Screen.Width)+'x'+IntToStr(Screen.Height);
end;
exports InfDisplayRes name 'InfDisplayRes';
Код: Выделить всё
...
private
{ Private declarations }
public
{ Public declarations }
end;
Function InfDisplayRes:String;external 'PrFunc.dll';
...
var
....
procedure TForm1.Button2Click(Sender: TObject);
begin
Edit1.Text:=InfDisplayRes;
end;