📄 myappservimpl.cpp
字号:
#include <vcl.h>
#pragma hdrstop
#include "MYAPPSERVIMPL.H"
#include "Unit1.h"
#if !defined(__PRAGMA_SMART_INIT_DEFINED)
#define __PRAGMA_SMART_INIT_DEFINED
#pragma package(smart_init)
#endif
#pragma resource "*.dfm"
/////////////////////////////////////////////////////////////////////////////
// Global instance of TMyAppServImpl
/////////////////////////////////////////////////////////////////////////////
TMyAppServ *MyAppServ;
/////////////////////////////////////////////////////////////////////////////
// TMyAppServ::TMyAppServ
/////////////////////////////////////////////////////////////////////////////
__fastcall TMyAppServ::TMyAppServ(TComponent* Owner) : TCRemoteDataModule(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TMyAppServ::CRemoteDataModuleCreate(TObject *Sender)
{
Form1->UpdateClientCount(1);
}
//---------------------------------------------------------------------------
void __fastcall TMyAppServ::CRemoteDataModuleDestroy(TObject *Sender)
{
Form1->UpdateClientCount(-1);
}
//---------------------------------------------------------------------------
void __fastcall TMyAppServ::tbAnimalBeforeOpen(TDataSet *DataSet)
{
Form1->IncQueryCount();
}
//---------------------------------------------------------------------------
OleVariant __fastcall TMyAppServ::DataSetProvider1DataRequest(
TObject *Sender, OleVariant &Input)
{
Form1->Caption = (WideString) Input;
return (OleVariant)(true);
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -