simpleserver.pas

来自「《Delphi COM深入编程》原书光盘」· PAS 代码 · 共 29 行

PAS
29
字号
unit SimpleServer;

interface

uses
  ComObj, ActiveX, DCOMServer_TLB;

type
  TSimpleDCOMServer = class(TAutoObject, ISimpleDCOMServer)
  protected
    function AreYouThere: WordBool; safecall;
    { Protected declarations }
  end;

implementation

uses ComServ;

function TSimpleDCOMServer.AreYouThere: WordBool;
begin
  Result := True;
end;

initialization
  TAutoObjectFactory.Create(ComServer, TSimpleDCOMServer, Class_SimpleDCOMServer,
    ciMultiInstance, tmApartment);
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?