Share this page

# lrc_BSTR1

Type Conversion From String

Creates a BSTR string.

    BSTR lrc_BSTR1( const char* str, long len );

lrc_BSTR1 creates a BSTR string which may include nulls, of length len.

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

Copy code

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

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