COM Vuser Functions (LRC) > Alphabetical List of Functions > lrc_variant_BSTR

lrc_variant_BSTR


Example: lrc_variant_BSTR Assignment to Variants

Assigns a string to a BSTR in a variant.

VARIANT lrc_variant_BSTR( const char* str );
VARIANT lrc_variant_BSTR_by_variant( const char* str ); 

str A character string.

The lrc_variant_BSTR function converts a string to a BSTR value stored in a variant.

The lrc_variant_BSTR_by_variant function converts a string to an BSTR value and returns a variant containing a reference to the variant containing the value.

Return Values

lrc Return Values

Parameterization

You cannot use standard parameterization for any arguments in this function.