调用dll不是和引用unit一样的,是要写语句的。去看看相关资料吧,
举个简单例子:
function  yourname(i:integer):integer;external 'name.dll';stdcall;

解决方案 »

  1.   

    同意楼上,还要注意DLL的路径,当前目录或系统目录
      

  2.   

    在name.dll中要有
    function yourname():Integer;stdcall;
    …………
    …………
    exports
      yourname;
    在Unit1单元中
    function  yourname (i :integer):integer;external  'name.dll';stdcall;
      

  3.   

    要是在过程中调用这个函数呢??
    《delphi5开发人员指南〉》的光盘中有一个程序就是用的uses
      

  4.   

    连接成功了,可按下f9时,程序却停在:
    program Project1;uses
      Forms,
      Unit1 in 'Unit1.pas' {Form1};{$R *.res}begin//  这里了??
      Application.Initialize;
      Application.CreateForm(TForm1, Form1);
      Application.Run;
    end.为什么??