character size more than 2 bytes
-
Hello I want to develop a software in vc++ which takes character size more than 2 bytes. It means I cannot use UNICODE . What settings should I use in Visual Studio or how can I use character size more than 2 bytes ?
Is there any special case where u need more than 2 bytes to store character?
-
Hello I want to develop a software in vc++ which takes character size more than 2 bytes. It means I cannot use UNICODE . What settings should I use in Visual Studio or how can I use character size more than 2 bytes ?
What language are you trying to store? Unicode handles every language available on the planet (including Klingon, Vulcan and Welsh) with a lot of room left for new languages. So unless you have invented some new language, UNICODE will work. What are you actually trying to do? Neil
-
Hello I want to develop a software in vc++ which takes character size more than 2 bytes. It means I cannot use UNICODE . What settings should I use in Visual Studio or how can I use character size more than 2 bytes ?
are there any special reasons for that you could explain fully here ? UNICODE provides 2 bytes per character, that allow you to have 65535 different characters in the same "set", which is large enough to represent all the characters of the world... :cool:
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
What language are you trying to store? Unicode handles every language available on the planet (including Klingon, Vulcan and Welsh) with a lot of room left for new languages. So unless you have invented some new language, UNICODE will work. What are you actually trying to do? Neil
-
are there any special reasons for that you could explain fully here ? UNICODE provides 2 bytes per character, that allow you to have 65535 different characters in the same "set", which is large enough to represent all the characters of the world... :cool:
TOXCCT >>> GEII power
[toxcct][VisualCalc]hmmm - does it support those elven-characters from Lord of the Rings ? :suss:
-
ok thanks I thought that there might be a case where I have to handle more than 2 bytes size and the software should not fail. anyways Is this possible or impossible ?
Answer is simply no. you cant do it in VC++ atleast, but you can always design your application to store more than 2 byte per char, but none of the windows api will be of any use coz they accept either ascii or unicode character set.
-prakash
-
What language are you trying to store? Unicode handles every language available on the planet (including Klingon, Vulcan and Welsh) with a lot of room left for new languages. So unless you have invented some new language, UNICODE will work. What are you actually trying to do? Neil
The 32 bit versions of unicode handle everything. The 16 bit versions miss a lo. (mostly Asain languages where there are a different symbol for each word) Windows is mostly 16 bit unicode. UCS-8 (which is common on unix) is variable size, IIRC it can use up to 6 bytes, or as little as 1.
-
Hello I want to develop a software in vc++ which takes character size more than 2 bytes. It means I cannot use UNICODE . What settings should I use in Visual Studio or how can I use character size more than 2 bytes ?
Yes you can use unicode. However you cannot use the uncode functions built into windows, because they use UCS-2 which is only 16 bit. I would typedef unsigned long to something like my_unicode_type, so that if you come up with something better latter you only need to change your type in one place. This depends though, if you are writting a class to wrap everything it might not be required.