- Recompilación en Delphi10 de todos los paquetes de RO para generar las DCU's en Lib\D10 git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@7 b6239004-a887-0f4b-9937-50029ccdca16
53 lines
1.5 KiB
ObjectPascal
53 lines
1.5 KiB
ObjectPascal
unit TimeServer_Impl;
|
|
|
|
{----------------------------------------------------------------------------}
|
|
{ This unit was automatically generated by the RemObjects SDK after reading }
|
|
{ the RODL file associated with this project . }
|
|
{ }
|
|
{ This is where you are supposed to code the implementation of your objects. }
|
|
{----------------------------------------------------------------------------}
|
|
|
|
interface
|
|
|
|
uses
|
|
{vcl:} Classes, SysUtils,
|
|
{RemObjects:} uROClientIntf, uROServer, uROServerIntf,
|
|
{Generated:} TimeServer_Intf;
|
|
|
|
type
|
|
TTimeServer = class(TRORemotable, ITimeServer)
|
|
private
|
|
protected
|
|
function Sum(const A: Integer; const B: Integer): Integer;
|
|
function GetServerTime: DateTime;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{Generated:} TimeServer_Invk, TimeServer_ServerMain;
|
|
|
|
procedure Create_TimeServer(out anInstance : IUnknown);
|
|
begin
|
|
anInstance := TTimeServer.Create;
|
|
end;
|
|
|
|
function TTimeServer.Sum(const A: Integer; const B: Integer): Integer;
|
|
begin
|
|
result := A+B;
|
|
TimeServer_ServerMainForm.mmRequest.Lines.Add('* Processing Sum request.');
|
|
end;
|
|
|
|
function TTimeServer.GetServerTime: DateTime;
|
|
begin
|
|
result := Now;
|
|
TimeServer_ServerMainForm.mmRequest.Lines.Add('* Processing Time request.');
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('TimeServer', Create_TimeServer, TTimeServer_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|