I just wonder whether 0xFFFF is a valid Unicode character.
When I using the following code:
CStringW strTempW;
CString strTemp1;
INT_PTR nLen;
strTempW.Format(L"%c", 0xFFFF);
nLen = strTempW.GetLength();
strTemp1 += strTempW;
nLen = strTemp1.GetLength();
After executing the first codeline strTempW.Format(L”%c”, 0xFFFF)
, I will get strTempW
of length 1, but cannot see it first character in Visual Studio watch window.
After executing the codeline strTemp1 += strTempW
, I will get strTemp1
of length 0.
That is confusing to me. Is 0xFFFF taken as a valid Unicode code point or not?