你把midaslib放在项目文件中算了,这样就不用再加载什么midas.dll了,不过程序文件会增加200k左右。如下:
program project1;
uses
midaslib,Forms, //uses处加入midaslib
Main in 'Main.pas' {FrmMain};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TFrmMain, FrmMain);
Application.Run;
end.