📄 simpleserver.pas
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -