Export (0) Print
Expand All

CW2CWEX Class 

This class is used by the string conversion macros CW2CTEX and CT2CWEX, and the typedef CW2W.


template<
   int t_nBufferLength = 128
>
class CW2CWEX

Parameters

t_nBufferLength

The size of the buffer used in the translation process. The default length is 128 bytes.

Unless extra functionality is required, use CW2CTEX, CT2CWEX, or CW2W in your code.

This class is safe to use in loops and won't overflow the stack. By default, the ATL conversion classes and macros use the current thread's ANSI code page for the conversion.

The following macros are based on this class:

  • CW2CTEX

  • CT2CWEX

The following typedef is based on this class:

  • CW2W

For a discussion of these text conversion macros, see ATL and MFC String Conversion Macros.

See ATL and MFC String Conversion Macros for an example of using these string conversion macros.

Header: atlconv.h

Community Additions

ADD
Show:
© 2014 Microsoft