Pass the const char* pointer to the narrow string to the CString class constructor.
For example,
LPCTSTR psz = "narrow string";
CString str(psz); // Construct CString object
printf_s("Null terminated string : %s\n", psz);
printf_s(("CString object : %s\n"), str.GetString());
Another way to construct the CString object-
CString str = psz; // Construct CString object