📄 autoserv_ocx.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 2001-9-15 20:42:19 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Samples\COM\AutoServ\AutoServ.exe (1)
// IID\LCID: {F8811B05-EF2A-45F0-B0E6-F596E4357F27}\0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (E:\WINNT\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (E:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
#ifndef __AutoServ_OCX_h__
#define __AutoServ_OCX_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(_NO_VCL)
#include <stdvcl.hpp>
#endif // _NO_VCL
#include <ocxproxy.h>
#include "AutoServ_TLB.h"
namespace Autoserv_tlb
{
// *********************************************************************//
// HelpString: AutoServ Library
// Version: 1.0
// *********************************************************************//
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TMyAutoObj
// Help String : MyAutoObj Object
// Default Interface: IMyAutoObj
// Def. Intf. Object: IMyAutoObjPtr
// Def. Intf. DISP? : No
// Event Interface: IMyAutoObjEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TMyAutoObj : public Oleserver::TOleServer
{
IMyAutoObjPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TMyAutoObj(TComponent* owner) : Oleserver::TOleServer(owner)
{}
IMyAutoObjPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(IMyAutoObjPtr intf);
virtual void __fastcall InvokeEvent(int DispID, Oleserver::TVariantArray& params);
long __fastcall Get_Text(void)
{
return GetDefaultInterface()->get_Text();
}
void __fastcall Set_Text(long Value/*[in]*/)
{
GetDefaultInterface()->set_Text(Value/*[in]*/);
}
__property long Text={ read=Get_Text, write=Set_Text, stored=false };
private:
__published:
};
}; // namespace Autoserv_tlb
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Autoserv_tlb;
#endif
#pragma option pop
#endif // __AutoServ_OCX_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -