Character Set Considerations

As stated earlier, Windows CE is a Unicode environment. While it supports ASCII functionality to allow the exchange of text files, the native text format is Unicode. The following list provides guidelines for converting ASCII-based code to Unicode:

Use the size of (TCHAR) operator to ensure that your code is valid for both Unicode and ASCII. When you increment pointers, remember that an ASCII character is one byte, but that a Unicode character is two bytes.