fclientform.~pas
来自「学习DELPHI的remobject4 目前我正在学习」· ~PAS 代码 · 共 39 行
~PAS
39 行
unit fClientForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,
uROClient, uROClientIntf, uRORemoteService, uROBinMessage, uROWinInetHTTPChannel;
type
TClientForm = class(TForm)
ROMessage: TROBinMessage;
ROChannel: TROWinInetHTTPChannel;
RORemoteService: TRORemoteService;
private
{ Private declarations }
public
{ Public declarations }
end;
var
ClientForm: TClientForm;
implementation
{
The unit NewLibrary_Intf.pas will be generated by the RemObjects preprocessor the first time you
compile your server application. Make sure to do that before trying to compile the client.
To invoke your server simply typecast your server to the name of the service interface like this:
(RORemoteService as INewService).Sum(1,2)
}
uses NewLibrary_Intf;
{$R *.dfm}
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?