我来回答第一个问题OleVariant 是在 Variant 上派生的 VCL类型,TVariant是设计用来与ATL一起工作的模板类的实例化。Variant is a C++Builder implementation of the Object Pascal intrinsic type Variant. However, TVariantT and TVariant are designed to work with C++Builder's COM implementation classes that use the ATL, while OleVariant works with the VCL's COM support.typedef TVariantT<VARIANT> TVariant;
However, TVariantT and TVariant are designed to work with C++Builder's COM implementation classes that use the ATL, while OleVariant works with the VCL's COM support.typedef TVariantT<VARIANT> TVariant;