|
- program MedicManage;
- uses
- Windows,
- Forms,
- Main in 'Main.pas' {fmMain},
- Cage in 'Cage.pas' {fmCage},
- Pupil in 'Pupil.pas' {fmPupil},
- PupilManage in 'PupilManage.pas' {fmPupilManage},
- Detail in 'Detail.pas' {fmDetail},
- DataMoudule in 'DataMoudule.pas' {DataModule1: TDataModule},
- CageManage in 'CageManage.pas' {fmCageManage},
- Intro in 'Intro.pas' {fmIntro},
- Recode in 'Recode.pas' {fmRecord},
- User in 'User.pas' {fmUser},
- UserMange in 'UserMange.pas' {fmUsermange},
- Login in 'Login.pas' {fmLogin};
- {$R *.res}
- var
- myMutex: THandle;
- begin
- myMutex:=CreateMutex(nil,false,'fmMain');
- if ((myMutex <> 0) and (GetLastError() <> ERROR_ALREADY_EXISTS)) then
- begin
- Application.Initialize;
- Application.CreateForm(TfmMain, fmMain);
- Application.CreateForm(TfmCage, fmCage);
- Application.CreateForm(TfmPupil, fmPupil);
- Application.CreateForm(TfmPupilManage, fmPupilManage);
- Application.CreateForm(TfmDetail, fmDetail);
- Application.CreateForm(TDataModule1, DataModule1);
- Application.CreateForm(TfmCageManage, fmCageManage);
- Application.CreateForm(TfmIntro, fmIntro);
- Application.CreateForm(TfmRecord, fmRecord);
- Application.CreateForm(TfmUser, fmUser);
- Application.CreateForm(TfmUsermange, fmUsermange);
- Application.CreateForm(TfmLogin, fmLogin);
- Application.Run;
- end
- else
- //messagedlg('你不能运行该应用程序的多个实例',mtInformation,[mboK],0);
- end.
复制代码 |
|