Share via


CStrBufT::CStrBufT

Constructs a buffer object.

CStrBufT(
   StringType& str,
   int nMinLength,
   DWORD dwFlags = AUTO_LENGTH 
) throw(...);
explicit CStrBufT(
   StringType& str 
) throw(...);

Parameters

  • str
    The string object associated with the buffer. Typically, the developer will use the predefined typedefs of CStrBuf (TCHAR variant), CStrBufA (char variant) and CStrBufW (wchar_t variant).

  • nMinLength
    The minimum length of the character buffer.

  • dwFlags
    Determines if the string length is automatically determined. Can be one of the following:

Remarks

Creates a string buffer for the associated string object. During construction, CSimpleStringT::GetBuffer or CSimpleStringT::GetBufferSetLength is called.

Note that the copy constructor is private.

Requirements

Header: atlsimpstr.h

See Also

Reference

CStrBufT Class

CStrBufT::StringType

Other Resources

CStrBufT Members