ATL CComVariant

CComVariant is for handling OLE automation data. CComVariant is derived from VARIANT, so you can use a CComVariant anywhere a VARIANT is required.

_variant_t is a VC++ compiler COM support extension. It’s compiler native, so there’s no dependency on atl.dll.


References

CComVariant class | Microsoft Learn _variant_t Class | Microsoft Learn