找回密码
 点一下
查看: 1909|回复: 3

[存个东西]View Source

  [复制链接]
发表于 2006-8-29 09:48:19 | 显示全部楼层 |阅读模式
  1. program MedicManage;

  2. uses
  3.   Windows,
  4.   Forms,
  5.   Main in 'Main.pas' {fmMain},
  6.   Cage in 'Cage.pas' {fmCage},
  7.   Pupil in 'Pupil.pas' {fmPupil},
  8.   PupilManage in 'PupilManage.pas' {fmPupilManage},
  9.   Detail in 'Detail.pas' {fmDetail},
  10.   DataMoudule in 'DataMoudule.pas' {DataModule1: TDataModule},
  11.   CageManage in 'CageManage.pas' {fmCageManage},
  12.   Intro in 'Intro.pas' {fmIntro},
  13.   Recode in 'Recode.pas' {fmRecord},
  14.   User in 'User.pas' {fmUser},
  15.   UserMange in 'UserMange.pas' {fmUsermange},
  16.   Login in 'Login.pas' {fmLogin};

  17. {$R *.res}
  18. var
  19. myMutex: THandle;

  20. begin
  21. myMutex:=CreateMutex(nil,false,'fmMain');
  22. if ((myMutex <> 0) and (GetLastError() <> ERROR_ALREADY_EXISTS)) then
  23.    begin
  24.     Application.Initialize;
  25.     Application.CreateForm(TfmMain, fmMain);
  26.     Application.CreateForm(TfmCage, fmCage);
  27.     Application.CreateForm(TfmPupil, fmPupil);
  28.     Application.CreateForm(TfmPupilManage, fmPupilManage);
  29.     Application.CreateForm(TfmDetail, fmDetail);
  30.     Application.CreateForm(TDataModule1, DataModule1);
  31.     Application.CreateForm(TfmCageManage, fmCageManage);
  32.     Application.CreateForm(TfmIntro, fmIntro);
  33.     Application.CreateForm(TfmRecord, fmRecord);
  34.     Application.CreateForm(TfmUser, fmUser);
  35.     Application.CreateForm(TfmUsermange, fmUsermange);
  36.     Application.CreateForm(TfmLogin, fmLogin);
  37.     Application.Run;
  38.    end
  39. else
  40.    //messagedlg('你不能运行该应用程序的多个实例',mtInformation,[mboK],0);
  41. end.
复制代码
发表于 2006-8-29 10:27:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2006-8-29 13:33:39 | 显示全部楼层
啊,好邪恶的代码啊...
回复

使用道具 举报

发表于 2006-8-29 23:51:16 | 显示全部楼层
果然看不懂。难道是让程序只运行一次的代码?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-12-22 14:24 , Processed in 0.034017 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表