ConvertIntf.pas
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 1k
Category:

Delphi VCL

Development Platform:

Delphi

  1. unit ConvertIntf;
  2. interface
  3. type
  4.   IConvert = interface(IInvokable)
  5.   ['{FF1EAA45-0B94-4630-9A18-E768A91A78E2}']
  6.     function ConvertCurrency (Source, Dest: string; Amount: Double): Double; stdcall;
  7.     function ToEuro (Source: string; Amount: Double): Double; stdcall;
  8.     function FromEuro (Dest: string; Amount: Double): Double; stdcall;
  9.     function TypesList: string; stdcall;
  10. end;
  11. implementation
  12. uses
  13.   InvokeRegistry;
  14. initialization
  15.   InvRegistry.RegisterInterface(TypeInfo(IConvert));
  16. end.