如何在 Delphi 7 上将 IStream 转换为 TStreamAdapter?
在 Delphi XE2 上,我可以写:
var
aStream: IStream;
aStreamAdapter: TStreamAdapter;
begin
...
aStreamAdapter := aStream as TStreamAdapter;
...
end;
但德尔福 7 写道:
Error: Operator not applicable to this operand type