📄 dll_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.134.1.41 $
// File generated on 2006-12-26 15:41:29 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Inetpub\wwwroot\uf\dll\dll.tlb (1)
// IID\LCID: {A0675C03-A65D-4C14-A240-47F396253E22}\0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\STDOLE2.TLB)
// (2) v4.0 StdVCL, (C:\WINDOWS\system32\STDVCL40.DLL)
// ************************************************************************ //
#ifndef __dll_TLB_h__
#define __dll_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
// *********************************************************************//
// 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 Dll_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_dll;
extern __declspec (package) const GUID IID_IComDll;
extern __declspec (package) const GUID CLSID_ComDll;
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
interface DECLSPEC_UUID("{27EB1D40-A519-4903-A58F-CCACC7B6DCD3}") IComDll;
typedef TComInterface<IComDll, &IID_IComDll> IComDllPtr;
// *********************************************************************//
// 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 IComDll ComDll;
typedef IComDllPtr ComDllPtr;
#define LIBID_OF_ComDll (&LIBID_dll)
// *********************************************************************//
// Interface: IComDll
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {27EB1D40-A519-4903-A58F-CCACC7B6DCD3}
// *********************************************************************//
interface IComDll : public IDispatch
{
public:
virtual HRESULT STDMETHODCALLTYPE Create(long* pWnd/*[out]*/) = 0; // [1]
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
#endif // __TLB_NO_INTERFACE_WRAPPERS
};
#if !defined(__TLB_NO_INTERFACE_WRAPPERS)
// *********************************************************************//
// SmartIntf: TCOMIComDll
// Interface: IComDll
// *********************************************************************//
template <class T /* IComDll */ >
class TCOMIComDllT : public TComInterface<IComDll>, public TComInterfaceBase<IUnknown>
{
public:
TCOMIComDllT() {}
TCOMIComDllT(IComDll *intf, bool addRef = false) : TComInterface<IComDll>(intf, addRef) {}
TCOMIComDllT(const TCOMIComDllT& src) : TComInterface<IComDll>(src) {}
TCOMIComDllT& operator=(const TCOMIComDllT& src) { Bind(src, true); return *this;}
HRESULT __fastcall Create(long* pWnd/*[out]*/);
};
typedef TCOMIComDllT<IComDll> TCOMIComDll;
// *********************************************************************//
// DispIntf: IComDll
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {27EB1D40-A519-4903-A58F-CCACC7B6DCD3}
// *********************************************************************//
template<class T>
class IComDllDispT : public TAutoDriver<IComDll>
{
public:
IComDllDispT(){}
IComDllDispT(IComDll *pintf)
{
TAutoDriver<IComDll>::Bind(pintf, false);
}
IComDllDispT(IComDllPtr pintf)
{
TAutoDriver<IComDll>::Bind(pintf, true);
}
IComDllDispT& operator=(IComDll *pintf)
{
TAutoDriver<IComDll>::Bind(pintf, false);
return *this;
}
IComDllDispT& operator=(IComDllPtr pintf)
{
TAutoDriver<IComDll>::Bind(pintf, true);
return *this;
}
HRESULT BindDefault()
{
return OLECHECK(Bind(CLSID_ComDll));
}
HRESULT BindRunning()
{
return BindToActive(CLSID_ComDll);
}
HRESULT __fastcall Create(long* pWnd/*[out]*/);
};
typedef IComDllDispT<IComDll> IComDllDisp;
// *********************************************************************//
// SmartIntf: TCOMIComDll
// Interface: IComDll
// *********************************************************************//
template <class T> HRESULT __fastcall
TCOMIComDllT<T>::Create(long* pWnd/*[out]*/)
{
return (*this)->Create(pWnd);
}
// *********************************************************************//
// DispIntf: IComDll
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {27EB1D40-A519-4903-A58F-CCACC7B6DCD3}
// *********************************************************************//
template <class T> HRESULT __fastcall
IComDllDispT<T>::Create(long* pWnd/*[out]*/)
{
_TDispID _dispid(*this, OLETEXT("Create"), DISPID(1));
TAutoArgs<1> _args;
_args[1] = pWnd /*[VT_I4:1]*/;
return OleFunction(_dispid, _args);
}
// *********************************************************************//
// 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.
// *********************************************************************//
// *********************************************************************//
// COCLASS DEFAULT INTERFACE CREATOR
// CoClass : ComDll
// Interface: TCOMIComDll
// *********************************************************************//
typedef TCoClassCreatorT<TCOMIComDll, IComDll, &CLSID_ComDll, &IID_IComDll> CoComDll;
#endif // __TLB_NO_INTERFACE_WRAPPERS
}; // namespace Dll_tlb
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Dll_tlb;
#endif
#pragma option pop
#endif // __dll_TLB_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -