很简单的,我不知道怎么错了
工程文件
library DllTry;
uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas';
{$R *.res}
exports
addxy;
begin
end.
单元文件
unit Unit1;
interface
function addxy:integer;export;
implementation
function addxy(x,y:integer):integer;export;
begin
result:=x+y;
end;
end.