Intended Usage
This method is intended to be used by client and server applications to duplicate (copy) data of type CORBA::WString. The resulting string should be subsequently freed using CORBA::wstring_free(). If the input value is NULL, the return value is NULL.
WStrings to be passed on remote method invocations or whose ownership is to be transferred from one library to another should be allocated using this method or CORBA::wstring_alloc() rather than the C++ new[ ] operator. This ensures that string memory is deleted using the same C++ run time that originally allocated it.
Syntax
static wchar_t* * wstring_dup(const wchar_t* * str);
Input parameters
Return values
Example
See the example for the CORBA::wstring_alloc method.