Article View: borland.public.cppbuilder.internationalization
Article #239Re: Unicode and LoadString
From: kev
Date: Thu, 05 May 2005 17:47
Date: Thu, 05 May 2005 17:47
52 lines
3235 bytes
3235 bytes
Andrue, Thanks for the response. I am having to internationalize a very large existing Builder app. I should be able to read Unicode strings from a language specific dll to populate all Captions, Labels, Menus etc. So as far as your question regarding "how often do I need to display Unicode strings?" The answer is Plenty! In the hundreds. The other, and potentially much bigger problem is database access. My program generates reports with data placed into an SQL Server database by other programs written by others on the team in VC. I most likely will have to read at least some strings out of the db that are Unicode such as info for report headers like "Work Order", "Customer Name", "Location" etc. I just wrote a small app to play with and converted a small existing database to Access and modified the Work Order field to some Chinese Unicode chars. (BTW - there are several Chinese programmers here). In access the string is fime. Using Tnt components, I can display the data in a TntDBGrid, TntEdit and TntMemo. Those MIGHT work for me, but I have to create Queries based on some of the fields read such as finding all records where the WorkOrder field = "Whatever". SO now I would have an AnsiString part of the query and a unicode part. How is THAT gonna work??? I have a feeling this is going to be painful! Thanks again, Kev "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote in message news:427a407a@newsgroups.borland.com... > kev wrote: > > > It should be a simple matter of UNICODE or !UNICODE, but as I look at > > the user groups, I can see that it is not. > > Definately not. The entire area of language support is horrendously > complex and convoluted. I'll add that although I have had to play with > it and have a level of understanding I am not an expert. My colleague > knows more about it (he had wrote our own codepage conversion module) > but even he gets confused. > . . . > How often do you need to display Unicode strings? We were lucky in that > we only needed to do that in a couple of cases. We were able to use > TextoutW() to the component's canvas. > -- > Andrue Cope [TeamB] > [Bicester, Uk] > http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<427a5c25$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427905c4$1@newsgroups.borland.com> <4279d5fd@newsgroups.borland.com> <427a1807$1@newsgroups.borland.com> <427a407a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,94c782bbe2550585 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "kev" <kev@isp.com> Newsgroups: borland.public.cppbuilder.internationalization References: <427905c4$1@newsgroups.borland.com> <4279d5fd@newsgroups.borland.com> <427a1807$1@newsgroups.borland.com> <427a407a@newsgroups.borland.com> Subject: Re: Unicode and LoadString Date: Thu, 5 May 2005 12:47:16 -0500 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 65.116.27.178 Message-ID: <427a5c25$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115315237 65.116.27.178 (5 May 2005 10:47:17 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail