My huge project need few message box in UNICODE without UNICODE compilation?
I have a huge old project. Converting it to total UNICODE compilation is very difficult. I need few menus and Messages boxes in UNICODE (Need in Japanese).
How to achive this without UNICODE compilation?
Is this possible?
Thanks in advance
Anita Eugene
Thanks for your replies. But... Kindly look at the four line code.
First, thanks a lot for the replies. TextOutW(..) prints somthing but not UNICODE. (I tried with some japanese characters. I have already installed japanese characters and its working on IE)
I tried the following code to test it for the first few characters of [Ã¥´ëºñÀÌ ÀÖÀ»±î¿ä]
Code:
wchar_t wchBuff[100];
wchBuff[0] = 0xcc45;
wchBuff[1] = 0xb300;
wchBuff[2] = 0xbe44;
wchBuff[3] = 0xc774;
wchBuff[4] = 0x00;
wchBuff[5] = 0x00;
TextOutW (pCDC->m_hDC, 0,0, wchBuff, 1);
MessageBoxW(NULL,wchBuff,NULL,MB_OK);
I am on Win98. Japanese UNICODE already installed.
What am I doing wrong?
Thanks for the helps.
Anita Eugene
Thanks for your reply. I tried as below
Thankyou for your reply. I corrected as below.
Below is a sample line cut and pasted here from my outlook
Ã¥´ëºñÃ¥ÀÌ ÀÖÀ»±î¿ä??
Here is my corrected code ?
Code:
wchar_t wchBuff[100];
wchBuff[0] = 0xcc45;
wchBuff[1] = 0xb300;
wchBuff[2] = 0xbe44;
wchBuff[3] = 0xc774;
wchBuff[4] = 0x00;
wchBuff[5] = 0x00;
CDC *pCDC = GetDC();
TextOutW (pDC->m_hDC, 0,0, wchBuff, 3);
MessageBoxW(NULL,wchBuff,NULL,MB_OK);
How can I select the font ?
What font I have to select ?
Thanks for your helps
Anita Eugene
Thankyou again. Here are some screenshots
When I visited a japanese page, my IE automatically loaded japanese in to my PC and could see the page in japanese.
I copied these lines from the webpage to my outlook as below
http://66.241.194.55/test/codeguru1.gif
then viewed the HTML of this code as below
http://66.241.194.55/test/codeguru2.gif
I converted first three characters in to hex (Ex. 52293 to 0xCC45 )
So, I am sure these are japanese unicode bytes.
Then I tried to print three of these characters. Please see FONT face is "Times New Roman" in my html source. But, still I see japanese.
Code:
wchar_t wchBuff[100];
wchBuff[0] = 0xcc45;
wchBuff[1] = 0xb300;
wchBuff[2] = 0xbe44;
wchBuff[3] = 0xc774;
wchBuff[4] = 0x00;
wchBuff[5] = 0x00;
CDC *pDC = GetDC();
TextOutW (pDC->m_hDC, 0,0, wchBuff, 5);
MessageBoxW(NULL,wchBuff,NULL,MB_OK);
MS Gothic" or "MS Mincho" are not see on my font list. But, without these, I am able to see japanese in outlook and HTML page.
I will be really thankful if you can help me little further. Let me also know how to load the font.
Thanks again
Anita Eugene
I think you have taken me to the final stage !!!
You are correct. That was korean. I tried your sample as it is. But, I think the font is the problem.
I get the following
http://66.241.194.55/test/codeguru3.gif
I am sure it is the font problem. Now, how and from where to install this font Arial Unicode MS on my PC ?
If this font is currently not available on my PC, how is this getting displayed on my outlook or HTML ?
How to check that I have this font on my PC?
Thank you for your great help.
Anita Eugene