如何在delphi中将IDispatchEx类型转换为TAutoIntfObject

时间:2019-02-16 11:11:55

标签: delphi

如何在delphi中将IDispatchEx转换为TAutoIntfObject。

var
    ValueEx: IDispatchEx;
    MyPropertyValue: Variant;
    AutoObj: TAutoIntfObject; 
begin
    Supports( IDispatch(MyPropertyValue), IDispatchEx, ValueEx );
    AutoObj := ValueEx as TAutoIntfObject; ---> this line occured error
end;

0 个答案:

没有答案