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

📄 server_tlb.h

📁 关于书籍《Borland c++Builder工程实践》的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// C++ TLBWRTR : $Revision:   1.151.1.0.1.27  $
// File generated on 02-9-28 15:38:10 from Type Library described below.

// ************************************************************************  //
// Type Lib: F:\misszengni\bcb\server.tlb (1)
// LIBID: {C1868BBE-8DE9-4A9D-BB30-D384F41BEA6A}
// LCID: 0
// Helpfile: 
// HelpString: server Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\System32\stdole2.tlb)
//   (2) v1.0 Midas, (C:\WINDOWS\System32\midas.dll)
// ************************************************************************ //
#ifndef   server_TLBH
#define   server_TLBH

#pragma option push -b -w-inl

#include <utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0600)
//
// The code generated by the TLIBIMP utility or the Import|TypeLibrary 
// and Import|ActiveX feature of C++Builder rely on specific versions of
// the header file UTILCLS.H found in the INCLUDE\VCL directory. If an 
// older version of the file is detected, you probably need an update/patch.
//
#error "This file requires a newer version of the header UTILCLS.H" \
       "You need to apply an update/patch to your copy of C++Builder"
#endif
#include <olectl.h>
#include <ocidl.h>
#if defined(USING_ATLVCL) || defined(USING_ATL)
#if !defined(__TLB_NO_EVENT_WRAPPERS)
#include <atl/atlmod.h>
#endif
#endif

#include "databkr.hpp"

using Midas::IAppServer;

// *********************************************************************//
// Forward reference of some VCL types (to avoid including STDVCL.HPP)    
// *********************************************************************//
namespace Stdvcl {class IStrings; class IStringsDisp;}
using namespace Stdvcl;
typedef TComInterface<IStrings> IStringsPtr;
typedef TComInterface<IStringsDisp> IStringsDispPtr;

namespace Server_tlb
{

// *********************************************************************//
// HelpString: server Library
// Version:    1.0
// *********************************************************************//


// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLSID_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
extern "C" const __declspec(selectany) GUID LIBID_server = {0xC1868BBE, 0x8DE9, 0x4A9D,{ 0xBB, 0x30, 0xD3,0x84, 0xF4, 0x1B,0xEA, 0x6A} };
extern "C" const __declspec(selectany) GUID IID_IRDMServer = {0xD1B6038C, 0x05A8, 0x4F4C,{ 0xBB, 0xA4, 0xE4,0xFA, 0x96, 0xAB,0xA4, 0x0B} };
extern "C" const __declspec(selectany) GUID CLSID_RDMServer = {0x092A1A75, 0xAB60, 0x4122,{ 0x80, 0xA9, 0x5D,0xC2, 0x47, 0xB9,0xF4, 0x37} };

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
interface DECLSPEC_UUID("{D1B6038C-05A8-4F4C-BBA4-E4FA96ABA40B}") IRDMServer;
typedef TComInterface<IRDMServer, &IID_IRDMServer> IRDMServerPtr;


// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
//                                                                        
// The LIBID_OF_ macro(s) map a LIBID_OF_CoClassName to the GUID of this  
// TypeLibrary. It simplifies the updating of macros when CoClass name    
// change.                                                                
// *********************************************************************//

#define LIBID_OF_RDMServer (&LIBID_server)
// *********************************************************************//
// Interface: IRDMServer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D1B6038C-05A8-4F4C-BBA4-E4FA96ABA40B}
// *********************************************************************//
interface IRDMServer  : public IAppServer
{
public:

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)



#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIRDMServer
// Interface: IRDMServer
// *********************************************************************//
template <class T /* IRDMServer */ >
class TCOMIRDMServerT : public TComInterface<IRDMServer>, public TComInterfaceBase<IUnknown>
{
public:
  TCOMIRDMServerT() {}
  TCOMIRDMServerT(IRDMServer *intf, bool addRef = false) : TComInterface<IRDMServer>(intf, addRef) {}
  TCOMIRDMServerT(const TCOMIRDMServerT& src) : TComInterface<IRDMServer>(src) {}
  TCOMIRDMServerT& operator=(const TCOMIRDMServerT& src) { Bind(src, true); return *this;}


};
typedef TCOMIRDMServerT<IRDMServer> TCOMIRDMServer;

// *********************************************************************//
// DispIntf:  IRDMServer
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D1B6038C-05A8-4F4C-BBA4-E4FA96ABA40B}
// *********************************************************************//
template<class T>
class IRDMServerDispT : public TAutoDriver<IRDMServer>
{
public:
  IRDMServerDispT(){}

  IRDMServerDispT(IRDMServer *pintf)
  {
    TAutoDriver<IRDMServer>::Bind(pintf, false);
  }

  IRDMServerDispT(IRDMServerPtr pintf)
  {
    TAutoDriver<IRDMServer>::Bind(pintf, true);
  }

  IRDMServerDispT& operator=(IRDMServer *pintf)
  {
    TAutoDriver<IRDMServer>::Bind(pintf, false);
    return *this;
  }

  IRDMServerDispT& operator=(IRDMServerPtr pintf)
  {
    TAutoDriver<IRDMServer>::Bind(pintf, true);
    return *this;
  }

  HRESULT BindDefault()
  {
    return OLECHECK(Bind(CLSID_RDMServer));
  }

  HRESULT BindRunning()
  {
    return BindToActive(CLSID_RDMServer);
  }

  HRESULT         __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, VARIANT Delta/*[in]*/, 
                                             long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/, 
                                             VARIANT* OwnerData/*[in,out]*/, 
                                             VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, VARIANT Delta/*[in]*/, 
                                             long MaxErrors/*[in]*/, long* ErrorCount/*[out]*/, 
                                             VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, VARIANT* Params/*[in,out]*/, 
                                           VARIANT* OwnerData/*[in,out]*/, 
                                           VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, VARIANT* Params/*[in,out]*/, 
                                           VARIANT* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, VARIANT Data/*[in]*/, 
                                            VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, VARIANT Data/*[in]*/);
  HRESULT         __fastcall AS_GetProviderNames(VARIANT* Value/*[out,retval]*/);
  VARIANT         __fastcall AS_GetProviderNames(void);

⌨️ 快捷键说明

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