#include#include int main() { CStdString str = "CONVERT ME TO LOWERCASE!"; str.MakeLower(); std::cout << str; }
#includeThis code will output "çât" after converting the uppercase characters to lowercase using the ASCII encoding. The MakeLower function takes a parameter for the code page, allowing the developer to specify which encoding to use. Again, the CStdString class is part of the ATL package.#include int main() { CStdString str = "çÂt"; str.MakeLower(0x0409); // 0x0409 is the code page for English (United States) std::cout << str; }