⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 link.dpr

📁 刚从网上找到的连连看的源码
💻 DPR
字号:
program link;

uses
  Forms,
  Classes,
  SysUtils,
  Dialogs,
  Windows,
  main in 'main.pas' {Form1},
  about in 'about.pas' {AboutBox},
  Scores in 'Scores.pas' {fmScores},
  Regest in 'Regest.pas',
  Reg in 'Reg.pas' {fmReg};

{$R *.res}
var
  FileName: TFileStream;
begin
  Application.Initialize;
  FileName := TFileStream.Create(Application.ExeName,fmShareDenyNone);
  CreateMutex(nil,True,Pchar('Link'));
  //showmessage(ParamStr(2));
  //showmessage(ParamStr(3));
  //showmessage(ParamStr(4));
  //showmessage(ParamStr(5));
  try
    GetRegInfo(FRegInfo,FDecKey,FileName);
    //showmessage(inttostr(FRegInfo.RunData));
    //FileName.Seek(-sizeof(TRegInfo),soEnd);
    //FileName.Read(RegInfo,sizeof(TRegInfo));
    if (ParamStr(1) <> FRegInfo.RunPar) or (ParamStr(1) = '') then
    begin
      //showmessage(RegInfo.RunPar);
      Application.Terminate;
      exit;
    end;
  except
    Application.Terminate;
    exit;
  end;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TAboutBox, AboutBox);
  Application.CreateForm(TfmReg, fmReg);
  Application.Run;
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -