program PrMain;
uses
sharemem,
Forms,
Windows,
UnitMain in 'UnitMain.pas' {Form1},
UnitExit in 'UnitExit.pas' {FormExit},
UnitLogin in 'UnitLogin.pas' {FormLogin},
Functions in 'Functions.pas';
{$R *.res}
//const classname = 'TForm1';
{声明为主窗体的类名}
{
var
handle : integer;
begin
}
// handle := findwindow(classname,nil);{查找是否有此类的窗体}
// if handle <> 0 then
{不为0则程序已运行}
// begin
// messagebox(0,'该程序已经在运行中!','运行',0);{提示程序已运行}
// halt;
{退出程序}
// end;
begin
Application.Initialize;
Application.CreateForm(TFormMain, FormMain);
FormLogin := TFormLogin.Create(FormLogin);
FormLogin.Show;
FormLogin.Update;
FormLogin.Timer1.enabled := true;
//sleep(5000);
////可以这样让FormLogin显示5秒钟,不用Timer
FormLogin.Free;
Application.Run;
end.