CString::SetSysString

Call this member function to reallocate the BSTR referenced by pbstr, and copy the contents of the CString object into it, including the NULL character. The value of the BSTR referenced by pbstr may change. The function throws a CMemoryException if insufficient memory exists.

Syntax

BSTR SetSysString( BSTR* pbstr ) const;

At a Glance

Header File Afx.h
Platforms
Versions 2.0 and later
Complete documentation Visual C++ documentation

See Also

CString Overview, CString Member Functions, Simple Value Types, ::SysReallocStringLen, ::SysFreeString, CMemoryException