📄 uaggregatedobj.pas
字号:
unit uAggregatedObj;
interface
uses
Windows, ActiveX, Classes, ComObj, pAggregateDemo_TLB, StdVcl;
type
IAggInterface = interface
['{D6D810F0-EE6A-4374-A069-8EF6F3B1832F}']
function GetInnerName(var sName: WideString): HResult; stdcall;
end;
TAggregatedObj = class(TAggregatedObject, IAggInterface)
public
function GetInnerName(var sName: WideString): HResult; stdcall;
end;
implementation
{ TAggregatedObj }
function TAggregatedObj.GetInnerName(var sName: WideString): HResult;
begin
sName := 'I am Aggregated Object!';
Result := S_OK;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -