📄 server_tlb.pas
字号:
unit Server_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.63 $
// File generated on 10/6/98 3:01:45 AM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Delphi4\Work\AutoEvents\Server.tlb
// IID\LCID: {2EA1DDA0-5CBD-11D2-9261-00104B700B61}\0
// Helpfile:
// HelpString: Server Library
// Version: 1.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_Server: TGUID = '{2EA1DDA0-5CBD-11D2-9261-00104B700B61}';
IID_IServerWithEvents: TGUID = '{2EA1DDA1-5CBD-11D2-9261-00104B700B61}';
DIID_IServerWithEventsEvents: TGUID = '{2EA1DDA3-5CBD-11D2-9261-00104B700B61}';
CLASS_ServerWithEvents: TGUID = '{2EA1DDA5-5CBD-11D2-9261-00104B700B61}';
type
// *********************************************************************//
// Forward declaration of interfaces defined in Type Library //
// *********************************************************************//
IServerWithEvents = interface;
IServerWithEventsDisp = dispinterface;
IServerWithEventsEvents = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library //
// (NOTE: Here we map each CoClass to its Default Interface) //
// *********************************************************************//
ServerWithEvents = IServerWithEvents;
// *********************************************************************//
// Interface: IServerWithEvents
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {2EA1DDA1-5CBD-11D2-9261-00104B700B61}
// *********************************************************************//
IServerWithEvents = interface(IDispatch)
['{2EA1DDA1-5CBD-11D2-9261-00104B700B61}']
procedure Clear; safecall;
procedure AddText(const NewText: WideString); safecall;
end;
// *********************************************************************//
// DispIntf: IServerWithEventsDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {2EA1DDA1-5CBD-11D2-9261-00104B700B61}
// *********************************************************************//
IServerWithEventsDisp = dispinterface
['{2EA1DDA1-5CBD-11D2-9261-00104B700B61}']
procedure Clear; dispid 3;
procedure AddText(const NewText: WideString); dispid 4;
end;
// *********************************************************************//
// DispIntf: IServerWithEventsEvents
// Flags: (4096) Dispatchable
// GUID: {2EA1DDA3-5CBD-11D2-9261-00104B700B61}
// *********************************************************************//
IServerWithEventsEvents = dispinterface
['{2EA1DDA3-5CBD-11D2-9261-00104B700B61}']
procedure OnTextChanged(const NewText: WideString); dispid 1;
procedure OnClear; dispid 2;
end;
CoServerWithEvents = class
class function Create: IServerWithEvents;
class function CreateRemote(const MachineName: string): IServerWithEvents;
end;
implementation
uses ComObj;
class function CoServerWithEvents.Create: IServerWithEvents;
begin
Result := CreateComObject(CLASS_ServerWithEvents) as IServerWithEvents;
end;
class function CoServerWithEvents.CreateRemote(const MachineName: string): IServerWithEvents;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ServerWithEvents) as IServerWithEvents;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -