Share this page

# 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.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: