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

📄 netimsclient.dpr

📁 计量功能 事件记录 购电提醒 欠费报警 负荷控制 自检功能 显示功能 用户插卡错误信息显示
💻 DPR
字号:
program NetIMSClient;

uses
  Forms,
  Windows,
  SysUtils,
  Dialogs,
  ClntMain in 'ClntMain.pas' {FrmClntMain},
  CustChk in 'CustChk.pas' {FrmCustChk},
  Open in 'Open.pas' {FrmOpen},
  Refresh in 'Refresh.pas' {FrmRef},
  OpLog in 'OpLog.pas' {FrmOpLog},
  RWCard in 'RWCard.pas' {FrmRWCard},
  CardDLLFT in 'CardDLLFT.pas',
  AboutCompy in 'AboutCompy.pas' {FrmAboutCompy},
  AboutSoft in 'AboutSoft.pas' {FrmSoftInfo},
  NetImsServer_TLB in '..\NIMSServer\NetImsServer_TLB.pas',
  ConstDef in '..\Type\ConstDef.pas',
  FieldDef in '..\Type\FieldDef.pas';
  
{$R *.RES}

var
  hMutex : HWND;//互斥体句柄
  iRetMutex : Integer; //返回值

begin
{ 1}  Application.Initialize;
{ 2}  Application.Title :='NIms管理器';
{ 3}  hMutex := CreateMutex(nil,False,DefClntAlias); //产生互斥体句柄
{ 4}  iRetMutex := GetLastError;   //返回线程的错误码
{ 5}  if iRetMutex<>ERROR_ALREADY_EXISTS Then begin
{ 6}     Application.CreateForm(TFrmClntMain, FrmClntMain);
{ 7}     Application.Run;
{ 8}   end
{ 9}  else MessageDlg('NIms管理器已经运行!',mtWarning,[mbOK],0);
{10}  ReleaseMutex(hMutex);  //释放互斥体句柄
end.

⌨️ 快捷键说明

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