共用方式為


CFixedStringT::CFixedStringT

Constructs a CFixedStringT object.

CFixedStringT( ) throw( ); 
explicit CFixedStringT( 
   IAtlStringMgr* pStringMgr  
) throw( ); 
CFixedStringT( 
   const CFixedStringT< StringType, t_nChars >& str  
); 
CFixedStringT( 
   const StringType& str  
); 
CFixedStringT( 
   const StringType::XCHAR* psz  
); 
explicit CFixedStringT( 
   const StringType::YCHAR* psz  
); 
explicit CFixedStringT( 
   const unsigned char* psz  
);

Parameters

  • psz
    A null-terminated string to be copied into this CFixedStringT object.

  • str
    An existing CFixedStringT object to be copied into this CFixedStringT object.

  • pStringMgr
    A pointer to the memory manager of the CFixedStringT object. For more information on IAtlStringMgr and memory management for CFixedStringT, see Memory Management and CStringT.

Remarks

Because the constructors copy the input data into new allocated storage, you should be aware that memory exceptions may result. Note that some of these constructors act as conversion functions.

Requirements

Header: cstringt.h

See Also

Reference

CFixedStringT Class