CString sText = "Hello, world!"; int nLength = sText.GetLength(); // nLength will be 13
CString sEmpty = ""; int nLength = sEmpty.GetLength(); // nLength will be 0In this example, we create a new empty CString object `sEmpty` with no value assigned. The `GetLength()` function is called to get its length, which should be 0. Overall, CString and its member functions are a powerful tool for manipulating strings in C++ programs, especially for Windows-based applications.