Use MFC class CString rather than the run-time library string functions in most of your MFC programming.
For related information about working with strings, see String Manipulation in the Run-Time Library Reference and String Manipulation in the Win32 Programmer's Reference.
The following categories of tasks are listed in this topic:
CString Operations Relating to C-Style Strings
Unicode and Multibyte Character Set (MBCS) Support in CString