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

In this example, lrc_save_wstring saves a wide string to a string parameter.

wchar_t wUserName[20];

....

lrc_save_wstring( "UserName", wUserName );