📄 areaintf.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 + -