Article View: borland.public.cppbuilder.internationalization
Article #234Unicode and LoadString
From: kev
Date: Wed, 04 May 2005 17:26
Date: Wed, 04 May 2005 17:26
34 lines
1985 bytes
1985 bytes
I amtrying to read and dispay as captions Unicode strings from a DLL. I am
having trouble getting this to work. Looking at all the post on the web
regarding VCL and Unicode gets very confusing. Simply stated, all I want to
do is get Uni strings from my dll which I am sure is fine. There are so
many different variations that I really dont know which way to go. There
are tips regarding using command line switches (-WU), wchar_t, WideString,
LoadString() and LoadStringW() and on and on....
Would it be possible to just correct the code below as needed?
Thanks,
kev
Here is what I have tried so far along with many different variations:
hLHandles = LoadLibrary("Chinese.dll");
if(hLHandles){
char sTempBuffer[128];
WideString WStr;
String Str;
wchar_t *wChar;
LoadStringW( hLHandles, 4038, WStr, 128);
OR
LoadString( hLHandles, 4038, sTempBuffer, 128);
OR ...
OR ...
Form1->Caption = 'whatever'
}
Technical Details
Message-ID:
<427905c4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10297d,94c782bbe2550585,start X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "kev" <kev@isp.com> Newsgroups: borland.public.cppbuilder.internationalization Subject: Unicode and LoadString Date: Wed, 4 May 2005 12:26:29 -0500 Lines: 36 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: <427905c4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115227588 65.116.27.178 (4 May 2005 10:26:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail