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

📄 sendmessage.dpr

📁 delphi写的基于server和client的聊天源码 有参考意义
💻 DPR
字号:
program sendmessage;

uses
  Forms,
  windows,
  Unitmsgsend in 'Unitmsgsend.pas' {frmmsgsend},
  Unitpulicsub in 'Unitpulicsub.pas',
  Unitmsgdm in 'Unitmsgdm.pas' {dm: TDataModule},
  Unitthzh in 'Unitthzh.pas',
  Unitzcser in 'Unitzcser.pas' {frmzcser},
  Unitbbs in 'Unitbbs.pas' {frmbbs},
  Unitbbsmx in 'Unitbbsmx.pas' {frmbbsmx};

Var
hMutex:HWND;
Ret:Integer;
{$R *.res}

begin
  hMutex:=CreateMutex(nil,False,'GDsendmsg');
  Ret:=GetLastError;
  If Ret<>ERROR_ALREADY_EXISTS Then
  begin
    Application.Initialize;
    Application.Title := '消息管理';
    Application.CreateForm(Tfrmmsgsend, frmmsgsend);
  try
      application.CreateForm(tdm,dm);
    except
      application.MessageBox('应用服务器连接错误,请重新注册应用服务器!','错误',mb_iconwarning);
      application.CreateForm(tfrmzcser,frmzcser);
    end;
    Application.Run;
  end else
  begin
    Application.MessageBox('程序已经运行!',pchar(application.Title),MB_iconwarning);
    ReleaseMutex(hMutex);
  end;
end.

⌨️ 快捷键说明

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