⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 areaintf.pas

📁 delphi com深入编程,非常有收藏价值
💻 PAS
字号:
unit AreaIntf;

interface

uses
  Windows, ActiveX, Classes, ComObj, DCPTypeServer_TLB, StdVcl;

type
  TUnitAuto = class(TTypedComObject, IUnitAuto)
  protected
    function Convert(Quantity: Double; InUnit, OutUnit: SYSINT): Double;
      stdcall;
    function Get_Name: WideString; stdcall;
    procedure Set_Name(const Value: WideString); stdcall;
    {Declare IUnitAuto methods here}
  end;

implementation

uses ComServ;

function TUnitAuto.Convert(Quantity: Double; InUnit,
  OutUnit: SYSINT): Double;
begin
  { Stubbed out because we're only interested in the type library }
end;

function TUnitAuto.Get_Name: WideString;
begin
  { Stubbed out because we're only interested in the type library }
end;

procedure TUnitAuto.Set_Name(const Value: WideString);
begin
  { Stubbed out because we're only interested in the type library }
end;

initialization
  TTypedComObjectFactory.Create(ComServer, TUnitAuto, Class_UnitAuto,
    ciMultiInstance, tmApartment);
end.

⌨️ 快捷键说明

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