Subscriber.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit Subscriber;
- {$WARN SYMBOL_PLATFORM OFF}
- interface
- uses
- ComObj, ActiveX, EvtSubscriber_TLB, StdVcl, MdComEvents_TLB;
- type
- TInformSubscriber = class(TAutoObject, IMdInform)
- protected
- procedure Informs(Code: Integer; const Message: WideString); safecall;
- end;
- implementation
- uses ComServ, Dialogs, SysUtils;
- procedure TInformSubscriber.Informs(Code: Integer;
- const Message: WideString);
- begin
- ShowMessage ('Message <' + IntToStr (Code) + '>: ' + Message);
- end;
- initialization
- TAutoObjectFactory.Create(ComServer, TInformSubscriber, Class_InformSubscriber,
- ciMultiInstance, tmApartment);
- end.