servmain.cpp

来自「《C Builder 5程序设计——数据库应用实务篇》程序源代码」· C++ 代码 · 共 38 行

CPP
38
字号
//---------------------------------------------------------------------------
// This program represents the "Application Server" portion of the
// distributed datasets demo.  The other part is the client which will access
// the data provided by this server.  You must compile and run this program
// once before running the EmpEdit project.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "ServMain.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TMainForm *MainForm;
//---------------------------------------------------------------------------
__fastcall TMainForm::TMainForm(TComponent* Owner)
    : TForm(Owner)
{
}
//---------------------------------------------------------------------------
// These procedures update the display of the application server form for
// the purposes of this demo.  A typical Application Server would probably
// not have any visible UI.  You can add a line to your project file to
// prevent the application server icon from being displayed on the taskbar.
//
void __fastcall TMainForm::UpdateClientCount(int Incr)
{
  FClientCount += Incr;
  ClientCount->Caption = IntToStr(FClientCount);
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::IncQueryCount(void)
{
  FQueryCount++;
  QueryCount->Caption = IntToStr(FQueryCount);
}

⌨️ 快捷键说明

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