|
Hi!
If I've a label called "label1" and its Text(Read from XML file) as "UserName",
then will the following suffice to display "UserName" in Chinese?
label1->Font = "Required Chinese Font"
|
|
|
|
|
It looks like you're confusing UNICODE issues with translation ones. You need to translate the text into Chinese, using the proper UNICODE characters.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
As Carlo notes below, you will need the word "UserName" in Chinese to start with.
I must get a clever new signature for 2011.
|
|
|
|
|
Richard MacCutchan wrote: As Carlo notes below, you will need the word "UserName" in Chinese to start with.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You were below when I was composing my message; only after I posted did I notice ...
I must get a clever new signature for 2011.
|
|
|
|
|
(pardon).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
pix_programmer wrote: How to represent the above string in the XML file using Unicode?
For storing strings in XML file, you should best encode them as UTF-8.
pix_programmer wrote: I also have to read and display this string from C++ and display its Chinese and
Korean representation.
By "display" I guess you mean using Win32 API. In that case, you'll need to convert the text you read from the XML file from UTF-8 to UTF-16, set a font that supports the script your text belongs to and draw it on the screen.
|
|
|
|
|
Hi All,
i am working on dialog based application,here on the main dialog box on the button click i open the child dialog and perform some action in thread here for reading excel file using excel automation and put the values in list ctrl of main dialog box and after reading i m trying to close chile dialog so i m using EndDialog but here the exception occur.
Unhandled exception at 0x76dc8834 in test.exe: 0xC0000005: Access violation writing location 0x00000018.
please help me how can i resolve this thanks in advance.
|
|
|
|
|
How are you creating the child dialog?
EndDialog is used to destroy a modal dialog.
Here is an excerpt from the documentation -
Dialog boxes created by the DialogBox, DialogBoxParam, DialogBoxIndirect, and DialogBoxIndirectParam functions must be destroyed using the EndDialog function. An application calls EndDialog from within the dialog box procedure; the function must not be used for any other purpose.
|
|
|
|
|
yes its a modal dialog box,and i simply open this using DoModal() and on this dialog box create a worker thread to read excel and at the end of thread use EndDialog to close the child dialog.
|
|
|
|
|
The documentation says that you must call EndDialog from within the dialog box procedure.
In the case of MFC, you must call it from within the dialog class.
Are you doing this?
|
|
|
|
|
The worker thread is in child dialog class.
|
|
|
|
|
so as «_Superman_» suggested, you should not call EndDialog from other threads. Use PostMessage to send some user defined messages to your child dialog and call EndDialog() from that message handler.
|
|
|
|
|
|
Slightly off topic, but what is the child dialog doing while the secondary thread is reading the Excel file?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
its not a secondary thread the thread is inside of child dialog box and when thread the excel file and insert the value in listctrl of main dialog,this time the child dialog box is in hidden form and after the ending of file reading i pass the command to end the child dialog.
|
|
|
|
|
Le@rner wrote: its not a secondary thread...
Are you calling AfxBeginThread() , _beginthread() , or CreateThread() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
yes i start the thread tru AfxBeginThread
|
|
|
|
|
Then you do have a secondary thread.
Now that that's out of the way, why are you doing this? Your primary thread is already being blocked by the modal child dialog, so having a secondary thread is not buying you anything.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
hi all guy!
I have a textbox. I want to input multi language to this textbox. In Control panel, i select location:japan. In VC++6, i select UNICODE, However Textbox cannot display corect(Ex:input tamin language). Please help me!
|
|
|
|
|
It is most likely 1 of 2 things wrong.
You don't have the correct language packs installed on your system, so the character is unprintable, or it is not supported by the selected font.
If the character works elsewhere on your computer, like in Wordpad or web pages (excluding wikipedia because it often uses images) then this is not your problem.
The character can't fit into Unicode. Unicode only defines space for 65535 characters. Some characters are out of this range, character sets like UTF-x can go up to a bit over 1.1 million characters (limited by a standard in the case of UTF-8, not the limits of the encoding).
Visual studio provides a Multi-byte option, which I have not used which may be able to help your problem, however the Windows core is coded in Unicode.
Other than this, make sure you have the correct character in the string to begin with.
|
|
|
|
|
Hi,
In microsoft word, u can input multi language? I buid small application in C for Win(VC++6), when I set location as EN. I can input multi language. Textbox is displayed corect with language input. When I set location as Japan, Textbox cann't display corect(Ex:Tamin Language)
|
|
|
|
|
hi everybody
i want to make a tree in a listctrl..
but i don't know how
i search but i don't find something about that
help me Plz
sorry if my english isn't good
|
|
|
|
|
|