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

📄 myappserver_master_detailimpl.h

📁 bcb应用开发技术解析 包括多线程
💻 H
字号:
// MYAPPSERVER_MASTER_DETAILIMPL.H : Declaration of the MyAppServer_Master_Detail

#ifndef MyAppServer_Master_DetailImplH
#define MyAppServer_Master_DetailImplH

#define ATL_FREE_THREADED
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <MidConst.hpp>

#include "Project1_TLB.H"
#include <DB.hpp>
#include <DBTables.hpp>
#include <Provider.hpp>
#include <atl/atlvcl.h>



// Forward ref. of IAppServer implementor


/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class TMyAppServer_Master_Detail : public TCRemoteDataModule
{
__published:  // IDE-managed Components
    TTable *Table1;
    TTable *Table2;
    TDatabase *Database1;
    TSession *Session1;
    TDataSetProvider *DataSetProvider1;
    TDataSource *DataSource1;
private:      // User declarations
public:       // User declarations
  __fastcall TMyAppServer_Master_Detail(TComponent* Owner);

__published:
};


/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
extern PACKAGE TMyAppServer_Master_Detail *MyAppServer_Master_Detail;


/////////////////////////////////////////////////////////////////////////////
// TMyAppServer_Master_DetailImpl     Implements IMyAppServer_Master_Detail, default interface of MyAppServer_Master_Detail
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support  : FALSE
// Default ProgID : Project1.MyAppServer_Master_Detail
// Description    : 
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TMyAppServer_Master_DetailImpl: REMOTEDATAMODULE_IMPL(TMyAppServer_Master_DetailImpl, MyAppServer_Master_Detail, TMyAppServer_Master_Detail, IMyAppServer_Master_Detail)
{
public:

BEGIN_COM_MAP(TMyAppServer_Master_DetailImpl)
  RDMOBJECT_COM_INTERFACE_ENTRIES(IMyAppServer_Master_Detail)
END_COM_MAP()

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


// IMyAppServer_Master_Detail
protected:
};

#endif  // MyAppServer_Master_DetailImplH

⌨️ 快捷键说明

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