🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #656

Re: Loading Unicode strings from a DLL Stringtable

#656
From: Daniel Pfeffer
Date: Thu, 11 Jul 2002 14:15
28 lines
2153 bytes
"Maris Janis Vasilevskis" <mahris@myself.com> wrote in message
news:3D2C186B.74A0A142@myself.com...
> Cheng-Yuan Bell Hsu wrote:
> >     Yes, but not use VCL. You should use Windows API function
LoadStringW().
> > This should be able to solve your problem.
> >
> > "Josh P" <b00urns@hotmail.com> ���g��l�� news:3d2b72da$1_2@dnews...
> > >
> > > Is it possible to load a unicode string from a DLL?
> > > I have my strings in a stringtable:
> > > IDS_CHINESESTRING L"\x5e2e\x52a9"  etc...
> > >
> > > loading these in, storing them as wchar_t, doesn't work.
> > > Borland C++ Builder v6
> > >
> With LoadStringW, you can have problems in 95/98/ME. If you wish to be
safe for all users, write your solution with FindResourceEx, LoadResource,
LockResource, and extract one of 16 strings from the locked resource.

Another possible solution is to use the UnicoWS library and DLL provided in
the platform SDK. These provide a Unicode solution for the Win95/98/Me
environments, by converting strings to/from Unicode as necessary. Search the
Microsoft site for more details.


HTH,
Daniel Pfeffer
Technical Details
Message-ID: <3d2d92a3$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!feed.textport.net!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3d2b72da$1_2@dnews> <3d2c0555$1_2@dnews> <3D2C186B.74A0A142@myself.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10297d,79a6dc7b97eaa7ba
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-07-11 07:34:09 PST
From: "Daniel Pfeffer" <pfefferd@hotmail.co.il>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3d2b72da$1_2@dnews> <3d2c0555$1_2@dnews> <3D2C186B.74A0A142@myself.com>
Subject: Re: Loading Unicode strings from a DLL Stringtable
Date: Thu, 11 Jul 2002 17:15:50 +0300
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 194.90.12.141
Message-ID: <3d2d92a3$1_1@dnews>
X-Trace: dnews 1026396835 194.90.12.141 (11 Jul 2002 07:13:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!feed.textport.net!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews