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.
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 |
BSTR SetSysString( BSTR* pbstr ) const;
::SysRealloCStringLen, ::SysFreeString, CMemoryException