var
Form1: TForm1;
HInst1:THandle;
FPointer1:TFarProc;
implementation
{$R *.dfm}
procedure TForm1.FormShow(Sender: TObject);
begin
HInst1:=LoadLibrary('..\Project1.dll');
if HInst1=0 then
begin
Application.MessageBox('没有找到程序运行所需要的动态链接库,程序启动失败','提示',MB_OK OR MB_ICONINFORMATION);
Application.Terminate;
end;