servdata.cpp

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

CPP
47
字号
#include <vcl.h>
#pragma hdrstop

#include "ServData.h"
#include "ServMain.h"

#if !defined(__PRAGMA_SMART_INIT_DEFINED)
#define __PRAGMA_SMART_INIT_DEFINED
#pragma package(smart_init)
#endif

#pragma resource "*.dfm"

TEmpServer_BCB *EmpServer_BCB;


__fastcall TEmpServer_BCB::TEmpServer_BCB(TComponent* Owner) : TCRemoteDataModule(Owner)
{
}
//---------------------------------------------------------------------------
// The rest of this code just demonstrates how you might monitor client
// activity from the server.  None of this is required to develop an
// application server.
//

void __fastcall TEmpServer_BCB::CRemoteDataModuleCreate(TObject *Sender)
{
  // Update the client counter
  MainForm->UpdateClientCount(1);
}
//---------------------------------------------------------------------------

void __fastcall TEmpServer_BCB::CRemoteDataModuleDestroy(TObject *Sender)
{
  // Update the client counter
  MainForm->UpdateClientCount(-1);
}
//---------------------------------------------------------------------------

void __fastcall TEmpServer_BCB::EmpQueryAfterOpen(TDataSet *DataSet)
{
  // Update the query counter
  MainForm->IncQueryCount();
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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