Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6API P6ERR P6CCALL P6R::p6AllocComString ( const P6WCHAR *  pszSource,
P6COMSTR *  ppNewString 
)

Allocates a new COM string the same length as pSource and copies the characters in pSource into the newly allocated COM string.

A NULL terminator is appeneded to the new COM string.

Parameters
pszSource[ in ] A pointer to the string to copy.
ppNewString[ out ] The address of a pointer that will receive the newly allocated string.
Returns