Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxWindows and UNICODE

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxWindows and UNICODE
#2784
Posted by: dejudicibus 2003-10-28 00:21:19
Hi.

I have to develop an application tha is able to show in a Text Control any UNICODE character. I developed a sample which makes use of wxString, wxChar and wxT(), I compiled it with wxUSE_UNICODE set to 1, and I launched. However, if I create a string like "x0045x0123xD09E" and set text control to it, I cannot see the corresponding UNICODE characters. I use Arial Unicode MS font in Windows, but I get no result.

Any help appreciated. A sample too ;-))))

Dario de Judicibus, Roma, Italia
Message2. Re: wxWindows and UNICODE
#2787
Posted by: upCASE 2003-10-28 09:16:22
Hi Dario!
I'm just curious: " I compiled it with wxUSE_UNICODE set to 1"...
Do you mean you have wxWindows compiled with that option set un setup.h or did you define this for the project?
To display Unicode, I guess you'll need a unicode enabled and compiled wxWindows lib. Adding a define for the projects won't be enough.

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: wxWindows and UNICODE
#2788
Posted by: dejudicibus 2003-10-28 22:33:18
Oh oh...

No. I did just for the project. I read somewhere that I have NOT to change setup.h, otherwise you get wrong output... I think in manual, UNICODE section...

So, I have to rebuild wxWindows? Are you sure? That might be the reason why I have not obtained any result in UNICODE enabling. Do you know anybody who developed UNICODE enabled applications by wxWindows? I would really appreciate some support...

Dario
Message4. Re: wxWindows and UNICODE
#2801
Posted by: upCASE 2003-10-29 01:53:19
Hi!
Nope, I don't know someone who uses a unicode version...
Personally I don' use it because I need the wxODBC classes and they're said to have a problem with unicode.
Browse through the setup.h to get some info about unicode. To be honest I'm not really sure if you'll have to recompile... In setup.h it says for wxUSE_WCHAR_T
"// Setting wxUSE_WCHAR_T to 1 gives you some degree of Unicode support without
// compiling the program in Unicode mode. More precisely, it will be possible
// to construct wxString from a wide (Unicode) string and convert any wxString
// to Unicode."

But I guess to have "full" support you'd have to get a unicode compiled lib (libwxmswu.a).
Maybe some other people can comment on this...

upcase
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: wxWindows and UNICODE
#2806
Posted by: dejudicibus 2003-10-29 02:28:31
Thank you. I'll look around for some wxWindows based application in some oriental country. Maybe author could help.

DdJ
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0