exam.dpr
来自「信息技术考试系统单机版数据库中附有两套练习——《高一信息技术期中练习》、《高一信」· DPR 代码 · 共 29 行
DPR
29 行
program exam;
uses
Forms,
//添加
windows,sysutils,
login in 'login.pas' {frmLogin};
{$R *.res}
//添加
var
hMutex:HWND;
Ret:integer;
begin
Application.Initialize;
Application.Title := '信息技术考试系统';
hMutex:=createMutex(nil,false,'infoExam'); //生成互斥句柄
Ret:=getlasterror;
if ret<>Error_already_exists then
begin
Application.CreateForm(TfrmLogin, frmLogin);
Application.Run;
end
else
Application.MessageBox('考试系统已经运行。', '信息', 64);
releasemutex(hMutex);
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?