dataserviceintf.pas

来自「Delphi开发webservice的一套例子」· PAS 代码 · 共 28 行

PAS
28
字号
{ Invokable interface declaration unit for IDataService }

unit DataServiceIntf;

interface

uses
  Types, XSBuiltIns;

type
  IDataService = interface(IInvokable)
    ['{15B1774A-9561-4521-AAAB-B93195D984E0}']
    // Declare your invokable logic here using standard Object Pascal code
    // Remember to include a calling convention! (usually stdcall)
    function QueryMyData(const sSQLCommand : String; var vData : String) : Integer; stdcall;
    function UpdateMyData(vData : String; var lErrorCount : Longint) : Integer; stdcall;
  end;

implementation

uses
  InvokeRegistry;

initialization
  InvRegistry.RegisterInterface(TypeInfo(IDataService), '', '');

end.
 

⌨️ 快捷键说明

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