home *** CD-ROM | disk | FTP | other *** search
- // ************************************************************************ //
- // 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.3 $
- // File generated on 12/8/98 4:57:32 PM from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\bcb4\Examples\Apps\Autosrv\srvr.tlb
- // IID\LCID: {921449E3-8905-11D1-B695-0020AF3F4B77}\0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINDOWS\System32\STDOLE2.TLB)
- // (2) v4.0 StdVCL, (C:\WINDOWS\System32\STDVCL40.DLL)
- // ************************************************************************ //
- #ifndef __srvr_TLB_h__
- #define __srvr_TLB_h__
-
- #pragma option push -b
-
-
- #include <vcl\utilcls.h>
- #if !defined(__UTILCLS_H_VERSION) || (__UTILCLS_H_VERSION < 0x0101)
- #error "This file requires an newer version of the header file UTILCLS.H"
- #endif
- #include <ocidl.h>
-
- namespace Srvr_tlb
- {
-
- // *********************************************************************//
- // HelpString: srvr Library
- // Version: 1.0
- // *********************************************************************//
-
-
- // *********************************************************************//
- // Forward reference of some VCL types (to avoid including STDVCL.HPP) //
- // *********************************************************************//
- class IStrings; class IStringsDisp;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLSID_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- DEFINE_GUID(LIBID_srvr, 0x921449E3, 0x8905, 0x11D1, 0xB6, 0x95, 0x00, 0x20, 0xAF, 0x3F, 0x4B, 0x77);
- DEFINE_GUID(IID_IEditServer, 0x921449E4, 0x8905, 0x11D1, 0xB6, 0x95, 0x00, 0x20, 0xAF, 0x3F, 0x4B, 0x77);
- DEFINE_GUID(CLSID_EditServer, 0x921449E5, 0x8905, 0x11D1, 0xB6, 0x95, 0x00, 0x20, 0xAF, 0x3F, 0x4B, 0x77);
-
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary //
- // *********************************************************************//
- interface DECLSPEC_UUID("{921449E4-8905-11D1-B695-0020AF3F4B77}") IEditServer;
-
- // *********************************************************************//
- // 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 IEditServer EditServer;
-
- #define LIBID_OF_EditServer (&LIBID_srvr)
- // *********************************************************************//
- // Interface: IEditServer
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {921449E4-8905-11D1-B695-0020AF3F4B77}
- // *********************************************************************//
- interface IEditServer : public IDispatch
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE Clear(void) = 0; // [1]
- virtual HRESULT STDMETHODCALLTYPE get_EditNum(int* Value/*[out,retval]*/) = 0; // [2]
- virtual HRESULT STDMETHODCALLTYPE set_EditNum(int Value/*[in]*/) = 0; // [2]
- virtual HRESULT STDMETHODCALLTYPE get_EditStr(BSTR* Value/*[out,retval]*/) = 0; // [3]
- virtual HRESULT STDMETHODCALLTYPE set_EditStr(BSTR Value/*[in]*/) = 0; // [3]
- virtual HRESULT STDMETHODCALLTYPE SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/,
- BSTR* result/*[out,retval]*/) = 0; // [4]
- };
-
- #if !defined(__TLB_NO_INTERFACE_WRAPPERS)
- // *********************************************************************//
- // SmartIntf: TCOMIEditServer
- // Interface: IEditServer
- // *********************************************************************//
- template <class T /* IEditServer */ >
- class TCOMIEditServerT : public TComInterface<IEditServer>, public TComInterfaceBase<IUnknown>
- {
- public:
- TCOMIEditServerT() {}
- TCOMIEditServerT(IEditServer *intf, bool addRef = false) : TComInterface<IEditServer>(intf, addRef) {}
- TCOMIEditServerT(const TCOMIEditServerT& src) : TComInterface<IEditServer>(src) {}
- TCOMIEditServerT& operator=(const TCOMIEditServerT& src) { Bind(src, true); return *this;}
-
- HRESULT __fastcall Clear(void);
- HRESULT __fastcall get_EditNum(int* Value/*[out,retval]*/);
- int __fastcall get_EditNum(void);
- HRESULT __fastcall set_EditNum(int Value/*[in]*/);
- HRESULT __fastcall get_EditStr(BSTR* Value/*[out,retval]*/);
- BSTR __fastcall get_EditStr(void);
- HRESULT __fastcall set_EditStr(BSTR Value/*[in]*/);
- HRESULT __fastcall SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/,
- BSTR* result/*[out,retval]*/);
- BSTR __fastcall SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/);
-
- __property int EditNum = {read = get_EditNum, write = set_EditNum};
- __property BSTR EditStr = {read = get_EditStr, write = set_EditStr};
- };
- typedef TCOMIEditServerT<IEditServer> TCOMIEditServer;
-
- // *********************************************************************//
- // DispIntf: IEditServer
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {921449E4-8905-11D1-B695-0020AF3F4B77}
- // *********************************************************************//
- template<class T>
- class IEditServerDispT : public TAutoDriver<IEditServer>
- {
- public:
- IEditServerDispT(){}
-
- IEditServerDispT(IEditServer *pintf)
- {
- TAutoDriver<IEditServer>::Bind(pintf);
- }
-
- IEditServerDispT& operator=(IEditServer *pintf)
- {
- TAutoDriver<IEditServer>::Bind(pintf);
- return *this;
- }
-
- HRESULT BindDefault(/*Binds to new instance of CoClass EditServer*/)
- {
- return OLECHECK(Bind(CLSID_EditServer));
- }
-
- HRESULT BindRunning(/*Binds to a running instance of CoClass EditServer*/)
- {
- return BindToActive(CLSID_EditServer);
- }
-
- HRESULT __fastcall Clear();
- HRESULT __fastcall get_EditNum(int* Value/*[out,retval]*/);
- int __fastcall get_EditNum(void);
- HRESULT __fastcall set_EditNum(int Value/*[in]*/);
- HRESULT __fastcall get_EditStr(BSTR* Value/*[out,retval]*/);
- BSTR __fastcall get_EditStr(void);
- HRESULT __fastcall set_EditStr(BSTR Value/*[in]*/);
- HRESULT __fastcall SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/,
- BSTR* result/*[out,retval]*/);
- BSTR __fastcall SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/);
-
- __property int EditNum = {read = get_EditNum, write = set_EditNum};
- __property BSTR EditStr = {read = get_EditStr, write = set_EditStr};
- };
- typedef IEditServerDispT<IEditServer> IEditServerDisp;
-
- // *********************************************************************//
- // SmartIntf: TCOMIEditServer
- // Interface: IEditServer
- // *********************************************************************//
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::Clear(void)
- {
- return (*this)->Clear();
- }
-
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::get_EditNum(int* Value/*[out,retval]*/)
- {
- return (*this)->get_EditNum(Value);
- }
-
- template <class T> int __fastcall
- TCOMIEditServerT<T>::get_EditNum(void)
- {
- int Value;
- OLECHECK(get_EditNum(&Value));
- return Value;
- }
-
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::set_EditNum(int Value/*[in]*/)
- {
- return (*this)->set_EditNum(Value);
- }
-
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::get_EditStr(BSTR* Value/*[out,retval]*/)
- {
- return (*this)->get_EditStr(Value);
- }
-
- template <class T> BSTR __fastcall
- TCOMIEditServerT<T>::get_EditStr(void)
- {
- BSTR Value;
- OLECHECK(get_EditStr(&Value));
- return Value;
- }
-
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::set_EditStr(BSTR Value/*[in]*/)
- {
- return (*this)->set_EditStr(Value);
- }
-
- template <class T> HRESULT __fastcall
- TCOMIEditServerT<T>::SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/,
- BSTR* result/*[out,retval]*/)
- {
- return (*this)->SetThreeStr(s1, s2, s3, result);
- }
-
- template <class T> BSTR __fastcall
- TCOMIEditServerT<T>::SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/)
- {
- BSTR result;
- OLECHECK(SetThreeStr(s1, s2, s3, &result));
- return result;
- }
-
- // *********************************************************************//
- // DispIntf: IEditServer
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {921449E4-8905-11D1-B695-0020AF3F4B77}
- // *********************************************************************//
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::Clear()
- {
- static _TDispID _dispid(*this, OLETEXT("Clear"), DISPID(1));
- return OleFunction(_dispid);
- }
-
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::get_EditNum(int* Value/*[out,retval]*/)
- {
- static _TDispID _dispid(*this, OLETEXT("EditNum"), DISPID(2));
- TAutoArgs<0> _args;
- return OutRetValSetterPtr(Value /*[VT_INT:1]*/, _args, OlePropertyGet(_dispid, _args));
- }
-
- template <class T> int __fastcall
- IEditServerDispT<T>::get_EditNum(void)
- {
- int Value;
- this->get_EditNum(&Value);
- return Value;
- }
-
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::set_EditNum(int Value/*[in]*/)
- {
- static _TDispID _dispid(*this, OLETEXT("EditNum"), DISPID(2));
- TAutoArgs<1> _args;
- _args[1] = Value /*[VT_INT:0]*/;
- return OlePropertyPut(_dispid, _args);
- }
-
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::get_EditStr(BSTR* Value/*[out,retval]*/)
- {
- static _TDispID _dispid(*this, OLETEXT("EditStr"), DISPID(3));
- TAutoArgs<0> _args;
- return OutRetValSetterPtr(Value /*[VT_BSTR:1]*/, _args, OlePropertyGet(_dispid, _args));
- }
-
- template <class T> BSTR __fastcall
- IEditServerDispT<T>::get_EditStr(void)
- {
- BSTR Value;
- this->get_EditStr(&Value);
- return Value;
- }
-
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::set_EditStr(BSTR Value/*[in]*/)
- {
- static _TDispID _dispid(*this, OLETEXT("EditStr"), DISPID(3));
- TAutoArgs<1> _args;
- _args[1] = Value /*[VT_BSTR:0]*/;
- return OlePropertyPut(_dispid, _args);
- }
-
- template <class T> HRESULT __fastcall
- IEditServerDispT<T>::SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/,
- BSTR* result/*[out,retval]*/)
- {
- static _TDispID _dispid(*this, OLETEXT("SetThreeStr"), DISPID(4));
- TAutoArgs<3> _args;
- _args[1] = s1 /*[VT_BSTR:0]*/;
- _args[2] = s2 /*[VT_BSTR:0]*/;
- _args[3] = s3 /*[VT_BSTR:0]*/;
- return OutRetValSetterPtr(result /*[VT_BSTR:1]*/, _args, OleFunction(_dispid, _args));
- }
-
- template <class T> BSTR __fastcall
- IEditServerDispT<T>::SetThreeStr(BSTR s1/*[in]*/, BSTR s2/*[in]*/, BSTR s3/*[in]*/)
- {
- BSTR result;
- this->SetThreeStr(s1, s2, s3, &result);
- return result;
- }
-
- // *********************************************************************//
- // 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 : EditServer
- // Interface: TCOMIEditServer
- // *********************************************************************//
- typedef TCoClassCreatorT<TCOMIEditServer, IEditServer, &CLSID_EditServer, &IID_IEditServer> CoEditServer;
- #endif // __TLB_NO_INTERFACE_WRAPPERS
-
-
- }; // namespace Srvr_tlb
-
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Srvr_tlb;
- #endif
-
- #pragma option pop
-
- #endif // __srvr_TLB_h__
-