📄 demoserver3impl.h
字号:
// DEMOSERVER3IMPL.H : Declaration of the DemoServer3
#ifndef DemoServer3ImplH
#define DemoServer3ImplH
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "ExpressSrv3_TLB.h"
#include <Db.hpp>
#include <DBTables.hpp>
#include <Provider.hpp>
#include <atl/atlvcl.h>
// Forward ref. of IAppServer implementor
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class TDemoServer3 : public TCRemoteDataModule
{
__published: // IDE-managed Components
TSession *Session1;
TQuery *QueryCustomer;
TDataSetProvider *DataSetProviderCustomer;
TQuery *QueryOrders;
TDataSetProvider *DataSetProviderOrders;
private: // User declarations
public: // User declarations
__fastcall TDemoServer3(TComponent* Owner);
__published:
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
extern PACKAGE TDemoServer3 *DemoServer3;
/////////////////////////////////////////////////////////////////////////////
// TDemoServer3Impl Implements IDemoServer3, default interface of DemoServer3
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support : FALSE
// Default ProgID : Project1.DemoServer3
// Description :
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TDemoServer3Impl: REMOTEDATAMODULE_IMPL(TDemoServer3Impl, DemoServer3, TDemoServer3, IDemoServer3)
{
public:
BEGIN_COM_MAP(TDemoServer3Impl)
RDMOBJECT_COM_INTERFACE_ENTRIES(IDemoServer3)
END_COM_MAP()
// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID("ExpressSrv3.DemoServer3");
DECLARE_DESCRIPTION("");
// 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);
}
// IDemoServer3
protected:
STDMETHOD(GetOrdersInfo(int CustNo));
};
#endif // DemoServer3ImplH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -