CString str("Convert Me To Lowercase"); str.MakeLower(); // str is now "convert me to lowercase"
CString str("PRINT ME IN LOWERCASE"); CString str_lower = str; str_lower.MakeLower(); cout << str_lower.GetString() << endl; // output: "print me in lowercase"In the above examples, we are using the CString MakeLower function which is a member of the CString class. This function converts all the letters in a CString to lowercase. The package/library that contains the CString class is the MFC (Microsoft Foundation Class) library, which is commonly used in Windows-based GUI applications.