library Project1;<br><br>{ Important note about DLL memory management: ShareMem must be the<br> first unit in your library's USES clause AND your project's (select<br> Project-View Source) USES clause if your DLL exports any procedures or<br> functions that pass strings as parameters or function results. This<br> applies to all strings passed to and from your DLL--even those that<br> are nested in records and classes. ShareMem is the interface unit to<br> the BORLNDMM.DLL shared memory manager, which must be deployed along<br> with your DLL. To avoid using BORLNDMM.DLL, pass string information<br> using PChar or ShortString parameters. }<br><br>uses<br> ExceptionLog,<br> SysUtils,<br> Classes;<br><br>{$R *.res}<br><br>procedure a;<br>begin<br>end;<br><br>procedure ab(b: Integer);<br>begin<br>end;<br><br>exports<br> a index 1 name 'a',<br> ab index 2 name 'a';<br><br>begin<br>end.<br>你可以这样输出同名函数(输出后dll的引出表里面有两个a函数),但是在dll内部,名字还是不能相同的,因为exports后面,你的a不能带参数,编译器不知道你要引出的是哪个a。所以用overload关键字指明的函数不好引出。