📄 mrd_tlb.pas
字号:
unit MRD_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 : $Revision: 1.11.1.75 $
// File generated on 01/29/2000 2:59:00 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Work\OPCHi\FirstServ.tlb
// IID\LCID: {A42F19F1-608B-11D3-B98D-00403357BAA5}\0
// Helpfile:
// HelpString: MRD OPC Library
// Version: 2.0
// ************************************************************************ //
interface
uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
// *********************************************************************//
// 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
LIBID_MRD: TGUID = '{A42F19F1-608B-11D3-B98D-00403357BAA5}';
IID_IDA2: TGUID = '{A42F19F2-608B-11D3-B98D-00403357BAA5}';
CLASS_DA2: TGUID = '{A42F19F4-608B-11D3-B98D-00403357BAA5}';
IID_DA2Unknown: TGUID = '{DEBAB081-6AE4-11D3-B995-00403357BAA5}';
IID_IOPCGroup: TGUID = '{B1779B97-71B6-11D3-B996-00104B33F2C4}';
CLASS_OPCGroup: TGUID = '{B1779B99-71B6-11D3-B996-00104B33F2C4}';
type
// *********************************************************************//
// Forward declaration of interfaces defined in Type Library //
// *********************************************************************//
IDA2 = interface;
IDA2Disp = dispinterface;
DA2Unknown = interface;
DA2UnknownDisp = dispinterface;
IOPCGroup = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library //
// (NOTE: Here we map each CoClass to its Default Interface) //
// *********************************************************************//
DA2 = IDA2;
OPCGroup = IOPCGroup;
// *********************************************************************//
// Interface: IDA2
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A42F19F2-608B-11D3-B98D-00403357BAA5}
// *********************************************************************//
IDA2 = interface(IDispatch)
['{A42F19F2-608B-11D3-B98D-00403357BAA5}']
end;
// *********************************************************************//
// DispIntf: IDA2Disp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A42F19F2-608B-11D3-B98D-00403357BAA5}
// *********************************************************************//
IDA2Disp = dispinterface
['{A42F19F2-608B-11D3-B98D-00403357BAA5}']
end;
// *********************************************************************//
// Interface: DA2Unknown
// Flags: (320) Dual OleAutomation
// GUID: {DEBAB081-6AE4-11D3-B995-00403357BAA5}
// *********************************************************************//
DA2Unknown = interface(IUnknown)
['{DEBAB081-6AE4-11D3-B995-00403357BAA5}']
end;
// *********************************************************************//
// DispIntf: DA2UnknownDisp
// Flags: (320) Dual OleAutomation
// GUID: {DEBAB081-6AE4-11D3-B995-00403357BAA5}
// *********************************************************************//
DA2UnknownDisp = dispinterface
['{DEBAB081-6AE4-11D3-B995-00403357BAA5}']
end;
// *********************************************************************//
// Interface: IOPCGroup
// Flags: (0)
// GUID: {B1779B97-71B6-11D3-B996-00104B33F2C4}
// *********************************************************************//
IOPCGroup = interface(IUnknown)
['{B1779B97-71B6-11D3-B996-00104B33F2C4}']
end;
CoDA2 = class
class function Create: IDA2;
class function CreateRemote(const MachineName: string): IDA2;
end;
CoOPCGroup = class
class function Create: IOPCGroup;
class function CreateRemote(const MachineName: string): IOPCGroup;
end;
implementation
uses ComObj;
class function CoDA2.Create: IDA2;
begin
Result := CreateComObject(CLASS_DA2) as IDA2;
end;
class function CoDA2.CreateRemote(const MachineName: string): IDA2;
begin
Result := CreateRemoteComObject(MachineName, CLASS_DA2) as IDA2;
end;
class function CoOPCGroup.Create: IOPCGroup;
begin
Result := CreateComObject(CLASS_OPCGroup) as IOPCGroup;
end;
class function CoOPCGroup.CreateRemote(const MachineName: string): IOPCGroup;
begin
Result := CreateRemoteComObject(MachineName, CLASS_OPCGroup) as IOPCGroup;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -