📄 myappserver_tlb.h
字号:
// ************************************************************************ //
// 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 2003-7-3 14:54:56 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Program Files\Borland\CBuilder6\Projects\czp\bread\Database\MultiTier\AppServer_Simple\MyAppServer.tlb (1)
// LIBID: {F59F9B28-0A06-41E7-A92C-C4C118194573}
// LCID: 0
// Helpfile:
// HelpString: MyAppServer Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// (2) v1.0 Midas, (C:\WINNT\System32\midas.dll)
// ************************************************************************ //
#ifndef MyAppServer_TLBH
#define MyAppServer_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 Myappserver_tlb
{
// *********************************************************************//
// HelpString: MyAppServer 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_MyAppServer = {0xF59F9B28, 0x0A06, 0x41E7,{ 0xA9, 0x2C, 0xC4,0xC1, 0x18, 0x19,0x45, 0x73} };
extern "C" const __declspec(selectany) GUID IID_IMyAppServer = {0xAB141DDA, 0x2704, 0x4A65,{ 0x86, 0xDC, 0x69,0xD0, 0xF9, 0xE7,0x63, 0x97} };
extern "C" const __declspec(selectany) GUID CLSID_MyAppServer = {0x9CA586F6, 0x52EA, 0x47BF,{ 0xA5, 0xB5, 0x2F,0x6A, 0x4D, 0x26,0xE5, 0x7C} };
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
interface DECLSPEC_UUID("{AB141DDA-2704-4A65-86DC-69D0F9E76397}") IMyAppServer;
typedef TComInterface<IMyAppServer, &IID_IMyAppServer> IMyAppServerPtr;
// *********************************************************************//
// 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_MyAppServer (&LIBID_MyAppServer)
// *********************************************************************//
// Interface: IMyAppServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {AB141DDA-2704-4A65-86DC-69D0F9E76397}
// *********************************************************************//
interface IMyAppServer : public IAppServer
{
public:
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
#endif // __TLB_NO_INTERFACE_WRAPPERS
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIMyAppServer
// Interface: IMyAppServer
// *********************************************************************//
template <class T /* IMyAppServer */ >
class TCOMIMyAppServerT : public TComInterface<IMyAppServer>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIMyAppServerT() {}
TCOMIMyAppServerT(IMyAppServer *intf, bool addRef = false) : TComInterface<IMyAppServer>(intf, addRef) {}
TCOMIMyAppServerT(const TCOMIMyAppServerT& src) : TComInterface<IMyAppServer>(src) {}
TCOMIMyAppServerT& operator=(const TCOMIMyAppServerT& src) { Bind(src, true); return *this;}
};
typedef TCOMIMyAppServerT<IMyAppServer> TCOMIMyAppServer;
// *********************************************************************//
// DispIntf: IMyAppServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {AB141DDA-2704-4A65-86DC-69D0F9E76397}
// *********************************************************************//
template<class T>
class IMyAppServerDispT : public TAutoDriver<IMyAppServer>
{
public:
IMyAppServerDispT(){}
IMyAppServerDispT(IMyAppServer *pintf)
{
TAutoDriver<IMyAppServer>::Bind(pintf, false);
}
IMyAppServerDispT(IMyAppServerPtr pintf)
{
TAutoDriver<IMyAppServer>::Bind(pintf, true);
}
IMyAppServerDispT& operator=(IMyAppServer *pintf)
{
TAutoDriver<IMyAppServer>::Bind(pintf, false);
return *this;
}
IMyAppServerDispT& operator=(IMyAppServerPtr pintf)
{
TAutoDriver<IMyAppServer>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_MyAppServer));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_MyAppServer);
}
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 + -