Ich habs grad mal getestet:
DLL:
Delphi-Quellcode:
uses
SysUtils,
Classes,
Unit66 in 'Unit66.pas' {Form66};
{$R *.res}
begin
TForm66.Create(nil).Show;
end.
Programm:
Delphi-Quellcode:
procedure TForm67.FormCreate(Sender: TObject);
begin
LoadLibrary('project37.dll');
end;
Funzt super. Das Formular bleibt bestehen.