Miscellaneous conversions

Web Site  Methods

 
Str::ToVariant
 

VARIANT ToVariant () const

Only available on Windows platforms

This method helps COM-intensive applications quickly convert a string value to a variant.  It returns a newly constructed VARIANT record of type VT_BSTR, initialized to a copy of the Str object's value.  The BSTR value contained in the variant is dynamically allocated with AllocSysString

 

See also: Basic operations