📄 comdll_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-12 20:02:49 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Samples\COM\ComDLL\ComDll.dll (1)
// IID\LCID: {F48A6647-B2F9-4726-A480-0B67664AFCC8}\0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (E:\WINNT\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (E:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
#ifndef __ComDll_OCX_h__
#define __ComDll_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 "ComDll_TLB.h"
namespace Comdll_tlb
{
// *********************************************************************//
// HelpString: ComDll Library
// Version: 1.0
// *********************************************************************//
// *********************************************************************//
// COM Component Proxy Class Declaration
// Component Name : TMyComObject
// Help String : MyComObject
// Default Interface: IMyComObject
// Def. Intf. Object: IMyComObjectPtr
// Def. Intf. DISP? : No
// Event Interface:
// TypeFlags : (2) CanCreate
// *********************************************************************//
class PACKAGE TMyComObject : public Oleserver::TOleServer
{
IMyComObjectPtr m_DefaultIntf;
_di_IUnknown __fastcall GetDunk();
public:
__fastcall TMyComObject(TComponent* owner) : Oleserver::TOleServer(owner)
{}
IMyComObjectPtr& GetDefaultInterface();
void __fastcall InitServerData();
void __fastcall Connect();
void __fastcall Disconnect();
void __fastcall BeforeDestruction();
void __fastcall ConnectTo(IMyComObjectPtr intf);
void __fastcall ShowDialog(void)
{
GetDefaultInterface()->ShowDialog();
}
};
}; // namespace Comdll_tlb
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Comdll_tlb;
#endif
#pragma option pop
#endif // __ComDll_OCX_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -