unicode application
-
I have an application that is running on a japanese machine and it seems that the code in that application is not working properly. It is having a char a[256] array and it looks like the char array is not getting populated with a string. In all strcpy(a, "test is here") is not working. Is this something related to unicode stuff on japanese locale. Will usage of tchar solve the problem?
-
I have an application that is running on a japanese machine and it seems that the code in that application is not working properly. It is having a char a[256] array and it looks like the char array is not getting populated with a string. In all strcpy(a, "test is here") is not working. Is this something related to unicode stuff on japanese locale. Will usage of tchar solve the problem?
tom groezer wrote:
Will usage of tchar solve the problem?
Have you tried it to see?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
I have an application that is running on a japanese machine and it seems that the code in that application is not working properly. It is having a char a[256] array and it looks like the char array is not getting populated with a string. In all strcpy(a, "test is here") is not working. Is this something related to unicode stuff on japanese locale. Will usage of tchar solve the problem?
tom groezer wrote:
Will usage of tchar solve the problem?
But you will have to replace those functions with equivalent _tcs functions. If you want to completely move to UNICODE and no looking back, you can choose wchar_t and the corresponding wcs functions.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
-
tom groezer wrote:
Will usage of tchar solve the problem?
But you will have to replace those functions with equivalent _tcs functions. If you want to completely move to UNICODE and no looking back, you can choose wchar_t and the corresponding wcs functions.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
Application uses multibyte character set but the symbol _UNICODE is not defined. Nit sure if the LOCALE Japanese can make the application to run in Unicode format?
-
Application uses multibyte character set but the symbol _UNICODE is not defined. Nit sure if the LOCALE Japanese can make the application to run in Unicode format?
tom groezer wrote:
Application uses multibyte character set but the symbol _UNICODE is not defined
You mean "And"? When you declare, MBCS, you should not use UNICODE. And Japanese letter would work with UNICODE. Remove MBCS if you had defined in your settings. and add UNICODE,_UNICODE.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
-
tom groezer wrote:
Application uses multibyte character set but the symbol _UNICODE is not defined
You mean "And"? When you declare, MBCS, you should not use UNICODE. And Japanese letter would work with UNICODE. Remove MBCS if you had defined in your settings. and add UNICODE,_UNICODE.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
Sorry to not make you understand. The project uses MBCS settings. It can't be set to unicode settings. I was thinking if this app is made to run on a japanese m/c is there a way that locale settings could turn the application to be unicode aware.Is that is the case, since my application code used char array and strcpy function would it make it compulsory to change the application code to use -tcscpy and tchar array. This application code works perfectly on a my system.
-
Sorry to not make you understand. The project uses MBCS settings. It can't be set to unicode settings. I was thinking if this app is made to run on a japanese m/c is there a way that locale settings could turn the application to be unicode aware.Is that is the case, since my application code used char array and strcpy function would it make it compulsory to change the application code to use -tcscpy and tchar array. This application code works perfectly on a my system.
tom groezer wrote:
Sorry to not make you understand. The project uses MBCS settings. It can't be set to unicode settings.
Then use the character mapping routines in tchar.h. It'll handle MBCS, Unicode, or ANSI. Just learn the equivalent string functions for it.
tom groezer wrote:
This application code works perfectly on a my system.
Probably because your system isn't a Japanese one. Just use the character mapping routines in tchar.h and you'll be ok.
Jeremy Falcon jeremyfalcon.com[^]