lrc_BSTR

Type Conversion From String

Converts a string into a BSTR.

BSTR lrc_BSTR( const char* str );
str A character string.

The lrc_BSTR function converts any character string into a BSTR.

Return Values

lrc Return Values

Parameterization

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

Example

In the following example lrc_BSTR1 creates a BSTR type string and then prints it to standard output. The complete string, including the nulls, will be sent to output.

BSTR str= lrc_BSTR1("abc\x00def\x00\x00ghi", 12);
lrc_print_bstr(str);