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
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);

