小弟我没做DLL文件,不知哪位大哥可以引我入门啊...
教我具体应试怎么做,呵呵:)~~~~~~~~~~~~~

解决方案 »

  1.   

    新建/dllwizrd然后就写函函数或过程就行了,接着设置一下出口编译就搞定了,
      

  2.   

    什么情况下要用dll文件啊,能解释一下么
      

  3.   

    代码要重用时可以用dll,比如说一个函数,在不同的模块中要用到多次
      

  4.   

    library Project2;{ Important note about DLL memory management: ShareMem must be the
      first unit in your library's USES clause AND your project's (select
      Project-View Source) USES clause if your DLL exports any procedures or
      functions that pass strings as parameters or function results. This
      applies to all strings passed to and from your DLL--even those that
      are nested in records and classes. ShareMem is the interface unit to
      the BORLNDMM.DLL shared memory manager, which must be deployed along
      with your DLL. To avoid using BORLNDMM.DLL, pass string information
      using PChar or ShortString parameters. }uses
      SysUtils,
      Classes;{$R *.res}
    function ss(n:integer):boolean;
    begin
      result:=false;
      if n>=1then
        begin
          result:=true;
        end
      else
        begin
          result:=false;
        end;
    end;
    exports
      ss;
    begin
    end.
      

  5.   

    是不是每写一个函数都要exports一下,还是exports下全部列出来,另外最后一个begin end
    什么时候用