When you assign a
Variant that contains custom data (such
as a Delphi string, or a one of the new custom variant
types) to an OleVariant, the runtime library tries to convert the
Variant into one of the OleVariant standard data types
(such as a Delphi string converts to an OLE BSTR string). For example, if a variant containing an AnsiString is
assigned to an OleVariant, the AnsiString becomes a WideString. The
same is true when passing a Variant to an
OleVariant function parameter.
96