This method allocates a new Automation–compatible string of the type BSTR and copies the contents of the CString object into it, including the terminating null character. A CMemoryException is thrown if insufficient memory exists. This method is normally used to return strings for Automation.
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 AllocSysString ( ) const; throw( CMemoryException );
::SysAlloCString, ::SysFreeString, CMemoryException