lrc_save_wstring

Parameterization ("save") Functions

Converts a wide string to a multi-byte and saves the multi-byte value in a string parameter.

int lrc_save_wstring( const char* param_name,  const wchar_t* wcharString );
param_nameThe name of the string parameter in which to store the value.
wcharStringA reference to the value to be saved.

The lrc_save_wstring function saves the wide character string as a multi-byte string in a string parameter. If parameter param_name does not exist, it is created.

Return Values

lrc Return Values

Parameterization

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

Example

This example saves the Boolean value "true" to a string:

VARIANT_BOOL var = lrc_bool("true");
lrc_save_bool("param-name",var);