program Project1;
uses
Forms,windows,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
CreateMutex(nil,False,'only flag!');
if GetLastError <> 0 then
begin
Application.MessageBox('程序已经运行,你不想双开吧?','提示',MB_OK);
Halt(0);
end;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.