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

📄 prjinterfaceimp.~pas

📁 DLL导出接口演示
💻 ~PAS
字号:
unit PrjInterfaceImp;

interface

uses
  PrjInterface, Windows;

type
  TMyClass = class(TInterfacedObject, IMyInterface)
  private
  protected
  public
    function MyFunc: WideString; safecall;
  end;

var
  MyClass: TMyClass;

function GetInterface: IMyInterface;
procedure FreeInterface;

implementation

{ TMyClass }

function GetInterface: IMyInterface;
begin
  result := IMyInterface(TMyClass.Create());
end;

procedure FreeInterface;
begin
  //MyClass.Free;
end;

function TMyClass.MyFunc: WideString;
begin
  Result := 'Test Interface<D10.天地弦DKSoft>';
end;

end.

⌨️ 快捷键说明

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