CString::SetSysString

This method reallocates the BSTR referenced by pbstr, and copies the contents of the CString object into it, including the NULL character. The value of the BSTR referenced by pbstr may change. The method throws a CMemoryException if insufficient memory exists.

At a Glance

Header file: Afx.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

BSTR SetSysString( BSTR* pbstr ) const;

See Also

::SysRealloCStringLen, ::SysFreeString, CMemoryException