📄 untrdmserver.h
字号:
// RDMSERVERIMPL.H : Declaration of the RDMServer
#ifndef untRDMServerH
#define untRDMServerH
#define ATL_FREE_THREADED
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <MidConst.hpp>
#include "server_TLB.H"
#include <ADODB.hpp>
#include <DB.hpp>
#include <Provider.hpp>
#include <atl/atlvcl.h>
// Forward ref. of IAppServer implementor
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class TRDMServer : public TCRemoteDataModule
{
__published: // IDE-managed Components
TADOConnection *ADOConnection1;
TADOQuery *ADOQuery1;
TDataSetProvider *DataSetProvider1;
private: // User declarations
public: // User declarations
__fastcall TRDMServer(TComponent* Owner);
__published:
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
extern PACKAGE TRDMServer *RDMServer;
/////////////////////////////////////////////////////////////////////////////
// TRDMServerImpl Implements IRDMServer, default interface of RDMServer
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support : FALSE
// Default ProgID : server.RDMServer
// Description :
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TRDMServerImpl: REMOTEDATAMODULE_IMPL(TRDMServerImpl, RDMServer, TRDMServer, IRDMServer)
{
public:
BEGIN_COM_MAP(TRDMServerImpl)
RDMOBJECT_COM_INTERFACE_ENTRIES(IRDMServer)
END_COM_MAP()
// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID(_T("server.RDMServer"));
DECLARE_DESCRIPTION(_T(""));
// Function invoked to (un)register object
//
static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
{
TRemoteDataModuleRegistrar regObj(GetObjectCLSID(), GetProgID(), GetDescription());
// Disable these flags in order to disable use by socket or web connections.
// Also set other flags to configure the behavior of your application server.
// For more information, see atlmod.h and atlvcl.cpp.
regObj.Singleton = false;
regObj.EnableWeb = true;
regObj.EnableSocket = true;
return regObj.UpdateRegistry(bRegister);
}
// IRDMServer
protected:
};
#endif // RDMServerImplH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -