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.
BSTR SetSysString( BSTR* pbstr ) const;
Header File | Afx.h |
Platforms | |
Versions | 2.0 and later |
Complete documentation | Visual C++ documentation |
CString Overview, CString Member Functions, Simple Value Types, ::SysReallocStringLen, ::SysFreeString, CMemoryException