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
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
This example assigns a string to a BSTR value stored in a variant.
VARIANT var = lrc_variant_BSTR("1234567");

