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

📄 expresssrv3_tlb.h

📁 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.134.1.39  $
// File generated on 2001/10/7 AM 10:42:16 from Type Library described below.

// ************************************************************************ //
// Type Lib: E:\program\Samples\InternetExpress3\ExpressSrv3.tlb (1)
// IID\LCID: {7247731B-30AE-4211-8478-0734D266FA6B}\0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINNT\System32\midas.dll)
//   (2) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
//   (3) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
#ifndef   __ExpressSrv3_TLB_h__
#define   __ExpressSrv3_TLB_h__

#pragma option push -b -w-inl

#include <utilcls.h>
#if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0500)
//
// 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 Expresssrv3_tlb
{

// *********************************************************************//
// HelpString: Project1 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 __declspec (package) const GUID LIBID_ExpressSrv3;
extern __declspec (package) const GUID IID_IDemoServer3;
extern __declspec (package) const GUID CLSID_DemoServer3;

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
interface DECLSPEC_UUID("{BD309934-2AE4-425C-B1BF-E7D84C3BDCED}") IDemoServer3;
typedef TComInterface<IDemoServer3, &IID_IDemoServer3> IDemoServer3Ptr;

// *********************************************************************//
// 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_DemoServer3 (&LIBID_ExpressSrv3)
// *********************************************************************//
// Interface: IDemoServer3
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {BD309934-2AE4-425C-B1BF-E7D84C3BDCED}
// *********************************************************************//
interface IDemoServer3  : public IAppServer
{
public:
  virtual HRESULT STDMETHODCALLTYPE GetOrdersInfo(int CustNo/*[in]*/) = 0; // [1]

#if !defined(__TLB_NO_INTERFACE_WRAPPERS)



#endif //   __TLB_NO_INTERFACE_WRAPPERS

};

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

  HRESULT         __fastcall GetOrdersInfo(int CustNo/*[in]*/);

};
typedef TCOMIDemoServer3T<IDemoServer3> TCOMIDemoServer3;

// *********************************************************************//
// DispIntf:  IDemoServer3
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {BD309934-2AE4-425C-B1BF-E7D84C3BDCED}
// *********************************************************************//
template<class T>
class IDemoServer3DispT : public TAutoDriver<IDemoServer3>
{
public:
  IDemoServer3DispT(){}

  IDemoServer3DispT(IDemoServer3 *pintf)
  {
    TAutoDriver<IDemoServer3>::Bind(pintf, false);
  }

  IDemoServer3DispT(IDemoServer3Ptr pintf)
  {
    TAutoDriver<IDemoServer3>::Bind(pintf, true);
  }

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

  IDemoServer3DispT& operator=(IDemoServer3Ptr pintf)
  {
    TAutoDriver<IDemoServer3>::Bind(pintf, true);
    return *this;
  }

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

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

  HRESULT         __fastcall GetOrdersInfo(int CustNo/*[in]*/);
  HRESULT         __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, 
                                             TVariantInParam Delta/*[in]*/, long MaxErrors/*[in]*/, 
                                             long* ErrorCount/*[out]*/, 
                                             TVariant* OwnerData/*[in,out]*/, 
                                             TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_ApplyUpdates(BSTR ProviderName/*[in]*/, 
                                             TVariantInParam Delta/*[in]*/, long MaxErrors/*[in]*/, 
                                             long* ErrorCount/*[out]*/, 
                                             TVariant* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, TVariant* Params/*[in,out]*/, 
                                           TVariant* OwnerData/*[in,out]*/, 
                                           TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_GetRecords(BSTR ProviderName/*[in]*/, long Count/*[in]*/, 
                                           long* RecsOut/*[out]*/, long Options/*[in]*/, 
                                           BSTR CommandText/*[in]*/, TVariant* Params/*[in,out]*/, 
                                           TVariant* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, TVariantInParam Data/*[in]*/
                                            , TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_DataRequest(BSTR ProviderName/*[in]*/, TVariantInParam Data/*[in]*/);
  HRESULT         __fastcall AS_GetProviderNames(TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_GetProviderNames(void);
  HRESULT         __fastcall AS_GetParams(BSTR ProviderName/*[in]*/, TVariant* OwnerData/*[in,out]*/
                                          , TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_GetParams(BSTR ProviderName/*[in]*/, TVariant* OwnerData/*[in,out]*/);
  HRESULT         __fastcall AS_RowRequest(BSTR ProviderName/*[in]*/, TVariantInParam Row/*[in]*/, 
                                           long RequestType/*[in]*/, TVariant* OwnerData/*[in,out]*/
                                           , TVariant* Value/*[out,retval]*/);
  TVariant        __fastcall AS_RowRequest(BSTR ProviderName/*[in]*/, TVariantInParam Row/*[in]*/, 

⌨️ 快捷键说明

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