⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demoserver2impl.h

📁 C++Builder高级应用开发指南随书源码
💻 H
字号:
// DEMOSERVER2IMPL.H : Declaration of the DemoServer2

#ifndef DemoServer2ImplH
#define DemoServer2ImplH

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#include "ExpressSrv2_TLB.H"
#include <Db.hpp>
#include <DBTables.hpp>
#include <Provider.hpp>
#include <atl/atlvcl.h>



// Forward ref. of IAppServer implementor


/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class TDemoServer2 : public TCRemoteDataModule
{
__published:  // IDE-managed Components
        TQuery *QueryCustomer;
        TDataSetProvider *DataSetProvider1;
        TQuery *QueryOrders;
        TDataSource *DataSource1;
private:      // User declarations
public:       // User declarations
  __fastcall TDemoServer2(TComponent* Owner);

__published:
};


/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
extern PACKAGE TDemoServer2 *DemoServer2;


/////////////////////////////////////////////////////////////////////////////
// TDemoServer2Impl     Implements IDemoServer2, default interface of DemoServer2
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support  : FALSE
// Default ProgID : ExpressSrv2.DemoServer2
// Description    : 
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TDemoServer2Impl: REMOTEDATAMODULE_IMPL(TDemoServer2Impl, DemoServer2, TDemoServer2, IDemoServer2)
{
public:

BEGIN_COM_MAP(TDemoServer2Impl)
  RDMOBJECT_COM_INTERFACE_ENTRIES(IDemoServer2)
END_COM_MAP()

  // Data used when registering Object 
  //
  DECLARE_THREADING_MODEL(otApartment);
  DECLARE_PROGID("ExpressSrv2.DemoServer2");
  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);
  }


// IDemoServer2
protected:
};

#endif  // DemoServer2ImplH

⌨️ 快捷键说明

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