🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #282

Re: WideString to Hexa Decimal Value

#282
From: Remy Lebeau (TeamB)
Date: Tue, 27 May 2008 20:41
23 lines
1861 bytes
"bar" <shaikakbar250281@yahoo.co.in> wrote in message 
news:48385c4f@newsgroups.borland.com...

> I got a situation, where i want to store a arabic text in the registry.
> If the PC is localized to arabic, it works fine. But if the PC is not
> localized to arabic, when i assign WideString(Unicode) to registry
> key it stores as ???. I tried with String, MultiString Keys in the 
> registry.

'?' characters appear when a Unicode->Ansi conversion is being performed. 
The VCL's TRegistry class does not support WideString at all.  To store 
Unicode data, you will have to use the Win32 API RegSetValueExW() and 
RegQueryValueExW() directly.

> I think the only way is to Convert Unicode WideString to related
> Hexadecimal numbers and store in the registry and read this value
> to display the unicode string.

Not true.


Gambit 
Technical Details
Message-ID: <483c7228@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <48385c4f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,89f4225d30e42975
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <48385c4f@newsgroups.borland.com>
Subject: Re: WideString to Hexa Decimal Value
Date: Tue, 27 May 2008 13:41:28 -0700
Lines: 25
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <483c7228@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1211920936 207.178.157.90 (27 May 2008 13:42:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail