Convert OleVariant to Object in Delphi

前端 未结 2 1012
我寻月下人不归
我寻月下人不归 2020-12-20 04:44

I\'m working on this project where we don\'t have the source code for large chunks of the project, but we have the .DLL files with some information. There is a bug in the D

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 05:25

    Try type cast to IUnknown first.

    tempSubclass := Subclass(ParentClass(Integer(IUnknown(oleVariantCast))));
    

提交回复
热议问题