As far as I can tell, GapiDraw, and WinCE only work with wide chars for text. My question is, why use TCHAR over standard wchar_t? Isn't TCHAR basically just a typedef of wchar_t? As far as I can tell that is all it is, but you have to use seperate functions for it (_stprintf vs swprintf). What are the advantages to this, or the reason?
I think the difference isn't in the WinCE version, I think it is in the x86 (xp) version. In the WinCE SDKs, TCHARs are defined as 2 byte characters, while in the regular Win SDK, they are defined as 1 byte chars. Thus, with TCHAR, you get simple portability.
Now, I don't know if wchar_t has the same portability, but I'm guessing that it doesn't. I also see no reason why wsprintf wouldn't work with a TCHAR in the WinCE compile even if you have to cast it. _stprintf is also portable, since it was built specifically around TCHARs.
I may not be entirely accurate, but I'm pretty sure that that is the reasoning. A much more seasoned developer than I will have to confirm that.