Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unicode testing

Status
Not open for further replies.

shyamal

Programmer
Aug 14, 2000
79
US
I was wondering whether any of you have worked with creating an application which was converted to Unicode. If so what type of tests would you recommend prior to the translation\internationalization of the product.

Thanks in advance.
 
Once UNICODE is defined, most will show themselves. WHat you need to be careful with is text strings. You will need to surround them with the _T macro. Also, use of char* should change to TCHAR. One more major issue is CString::GetLength. This functions as expected when you look at it but look at this situation

CString str = _T("HELLO WORLD");
myFile.Write(str,str.GetLength());

GetLength will return 11 but the actual byte size is 22 when unicode is defined. the above should change to

myFile.Write(str,str.GetLength()*sizeof(TCHAR));

Just a few tips to get you started. Good luck

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top