library DLL; uses SysUtils, Classes, dlltest in 'dlltest.pas';{$R *.res} function Max:integer;export; begin result:=1000; end;exports Max; begin end. 下下面这个是接口 unit dlltest; interface function Max : Integer; procedure Min;implementation function Max; external 'DLL.DLL'; procedure Min; begin // end; end. 也就是说,接口中有个Min那么他在内存中的保存形式跟Max一样不?
uses
SysUtils,
Classes,
dlltest in 'dlltest.pas';{$R *.res}
function Max:integer;export;
begin
result:=1000;
end;exports
Max;
begin
end.
下下面这个是接口
unit dlltest;
interface
function Max : Integer;
procedure Min;implementation
function Max; external 'DLL.DLL';
procedure Min;
begin
//
end;
end.
也就是说,接口中有个Min那么他在内存中的保存形式跟Max一样不?
再者编译之后,内存中什么也没有,除非你实例化了DLL中的类。才会在内存中有这个类的对象。否则,编译完了和没编译内存没什么差别。