📄 comserver_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 2004-3-15 0:15:17 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:\sample\sample100\server\ComServer.tlb (1)
// LIBID: {80A67842-A739-412A-87D8-7D96BBCC36D8}
// LCID: 0
// Helpfile:
// HelpString: ComServer Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\System32\Stdole2.tlb)
// ************************************************************************ //
#ifndef ComServer_TLBH
#define ComServer_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
// *********************************************************************//
// 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 Comserver_tlb
{
// *********************************************************************//
// HelpString: ComServer 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_ComServer = {0x80A67842, 0xA739, 0x412A,{ 0x87, 0xD8, 0x7D,0x96, 0xBB, 0xCC,0x36, 0xD8} };
extern "C" const __declspec(selectany) GUID IID_ICoComServer = {0x6BA175B2, 0x4DD9, 0x421C,{ 0xBB, 0xCE, 0x0B,0x5E, 0x2A, 0x0B,0x99, 0x63} };
extern "C" const __declspec(selectany) GUID CLSID_CoComServer = {0xE011C6E8, 0xD337, 0x4E0A,{ 0x91, 0x22, 0xB2,0x28, 0xE8, 0xC4,0x62, 0x70} };
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
interface DECLSPEC_UUID("{6BA175B2-4DD9-421C-BBCE-0B5E2A0B9963}") ICoComServer;
typedef TComInterface<ICoComServer, &IID_ICoComServer> ICoComServerPtr;
// *********************************************************************//
// 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.
// *********************************************************************//
typedef ICoComServer CoComServer;
typedef ICoComServerPtr CoComServerPtr;
#define LIBID_OF_CoComServer (&LIBID_ComServer)
// *********************************************************************//
// Interface: ICoComServer
// Flags: (256) OleAutomation
// GUID: {6BA175B2-4DD9-421C-BBCE-0B5E2A0B9963}
// *********************************************************************//
interface ICoComServer : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE get_Value(long* Value/*[out,retval]*/) = 0; // [1]
virtual HRESULT STDMETHODCALLTYPE set_Value(long Value/*[in]*/) = 0; // [1]
virtual long STDMETHODCALLTYPE Add(long x/*[in]*/, long y/*[in]*/) = 0; // [2]
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMICoComServer
// Interface: ICoComServer
// *********************************************************************//
template <class T /* ICoComServer */ >
class TCOMICoComServerT : public TComInterface<ICoComServer>, public TComInterfaceBase<IUnknown>
{
public:
TCOMICoComServerT() {}
TCOMICoComServerT(ICoComServer *intf, bool addRef = false) : TComInterface<ICoComServer>(intf, addRef) {}
TCOMICoComServerT(const TCOMICoComServerT& src) : TComInterface<ICoComServer>(src) {}
TCOMICoComServerT& operator=(const TCOMICoComServerT& src) { Bind(src, true); return *this;}
HRESULT __fastcall get_Value(long* Value/*[out,retval]*/);
long __fastcall get_Value(void);
HRESULT __fastcall set_Value(long Value/*[in]*/);
long __fastcall Add(long x/*[in]*/, long y/*[in]*/);
__property long Value = {read = get_Value};
};
typedef TCOMICoComServerT<ICoComServer> TCOMICoComServer;
// *********************************************************************//
// SmartIntf: TCOMICoComServer
// Interface: ICoComServer
// *********************************************************************//
template <class T> HRESULT __fastcall
TCOMICoComServerT<T>::get_Value(long* Value/*[out,retval]*/)
{
return (*this)->get_Value(Value);
}
template <class T> long __fastcall
TCOMICoComServerT<T>::get_Value(void)
{
long Value;
OLECHECK(this->get_Value((long*)&Value));
return Value;
}
template <class T> HRESULT __fastcall
TCOMICoComServerT<T>::set_Value(long Value/*[in]*/)
{
return (*this)->set_Value(Value);
}
template <class T> long __fastcall
TCOMICoComServerT<T>::Add(long x/*[in]*/, long y/*[in]*/)
{
return (*this)->Add(x, y);
}
// *********************************************************************//
// The following typedefs expose classes (named CoCoClassName) that
// provide static Create() and CreateRemote(LPWSTR machineName) methods
// for creating an instance of an exposed object. These functions can
// be used by client wishing to automate CoClasses exposed by this
// typelibrary.
// *********************************************************************//
#endif // __TLB_NO_INTERFACE_WRAPPERS
}; // namespace Comserver_tlb
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Comserver_tlb;
#endif
#pragma option pop
#endif // ComServer_TLBH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -