📄 project1_tlb.pas
字号:
unit Project1_TLB;
// ************************************************************************ //
// 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.
// ************************************************************************ //
// PASTLWTR : 1.2
// File generated on 2003-9-17 23:11:59 from Type Library described below.
// ************************************************************************ //
// Type Lib: J:\个人设置_Personal\文章\利用浏览器实现程序界面与实现的分离\Demo\Project1.tlb (1)
// LIBID: {C59CB3EF-80FD-4F2D-93EA-9A552417E058}
// LCID: 0
// Helpfile:
// HelpString: Project1 Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINDOWS\System32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
Project1MajorVersion = 1;
Project1MinorVersion = 0;
LIBID_Project1: TGUID = '{C59CB3EF-80FD-4F2D-93EA-9A552417E058}';
IID_IMyExternal: TGUID = '{20727528-AB39-428A-89D6-0582E07BADA7}';
CLASS_MyExternal: TGUID = '{646058B7-2A24-4086-AFCD-248998569D80}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IMyExternal = interface;
IMyExternalDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
MyExternal = IMyExternal;
// *********************************************************************//
// Interface: IMyExternal
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {20727528-AB39-428A-89D6-0582E07BADA7}
// *********************************************************************//
IMyExternal = interface(IDispatch)
['{20727528-AB39-428A-89D6-0582E07BADA7}']
procedure ShowAboutBox; safecall;
procedure SwitchUI; safecall;
end;
// *********************************************************************//
// DispIntf: IMyExternalDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {20727528-AB39-428A-89D6-0582E07BADA7}
// *********************************************************************//
IMyExternalDisp = dispinterface
['{20727528-AB39-428A-89D6-0582E07BADA7}']
procedure ShowAboutBox; dispid 201;
procedure SwitchUI; dispid 202;
end;
// *********************************************************************//
// The Class CoMyExternal provides a Create and CreateRemote method to
// create instances of the default interface IMyExternal exposed by
// the CoClass MyExternal. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoMyExternal = class
class function Create: IMyExternal;
class function CreateRemote(const MachineName: string): IMyExternal;
end;
implementation
uses ComObj;
class function CoMyExternal.Create: IMyExternal;
begin
Result := CreateComObject(CLASS_MyExternal) as IMyExternal;
end;
class function CoMyExternal.CreateRemote(const MachineName: string): IMyExternal;
begin
Result := CreateRemoteComObject(MachineName, CLASS_MyExternal) as IMyExternal;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -