CString::AllocSysString

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.

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 AllocSysString ( ) const; throw( CMemoryException );

See Also

::SysAlloCString, ::SysFreeString, CMemoryException