Converting projetc to unicode support
-
Hi I want my application to convert to unicode support so for this is it necessary to convert all char data type to TCHAR and after conversion my application will it support ASCII characters? Thanks and Regards M.Atul M.Atul
To convert a C++ applicaiton to Unicode define UNICODE (add it the list where you have DEBUG etc). We used the generic text _TCHAR because we wanted to be able to make non-Unicode builds. Check out: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_unicode_programming_tasks.asp[^]
-
Hi I want my application to convert to unicode support so for this is it necessary to convert all char data type to TCHAR and after conversion my application will it support ASCII characters? Thanks and Regards M.Atul M.Atul
To add to Leah_Garrett's reply... If you use TCHAR types and the associated string functions (_tcscpy(), _tcscmp(), etc.) you'll be able to use the same code for both unicode and non-unicode builds. You can still use single-byte ASCII ("char" type) in a unicode build but you'll need to use the type explicitly. Mark
-
To convert a C++ applicaiton to Unicode define UNICODE (add it the list where you have DEBUG etc). We used the generic text _TCHAR because we wanted to be able to make non-Unicode builds. Check out: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_unicode_programming_tasks.asp[^]