Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::wstrdupbstr ( const P6BWCSTR pString,
P6WCHAR **  ppCopy 
)
pure virtual

Alocate new storage for and duplicate the specified P6BWCSTR into that storage.

The resulting P6WCHAR string is NULL terminated. You MUST call p6ISafeString::wstrfree() to deallocate the string.

See Also
p6ISafeString::strfree()
Parameters
pString[ in ] A pointer to the P6R::P6BWCSTR string to duplicate.
ppCopy[ out ] The address of a P6R::P6WCHAR * in which to a place a pointer to the newly allocated copy.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpString or ppCopy is NULL
P6R::eTooBigThe string was longer than P6SAFESTR_MAX_CCH characters.
P6R::eNoMemoryThere were not enough resources to allocate space for the copy of the string.