🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BSTR type and Tlabel

#66
From: fmarka
Date: Wed, 17 Aug 2005 14:18
22 lines
1384 bytes
Hello,

i have TLabel and TCppWebBrowser component. There is event OnTitleChange 
for TCppWebBrowser.

CppWebBrowser1TitleChange(TObject *Sender, BSTR URL)
{....


What am i trying to do is :

Label->Caption = AnsiString(URL);

but i see only question-marks instead of russian letters.

What string conversions do i need to do and what charset set for Label 
to see Russian or Lithuanian letters ( i have support of these languages 
installed on OS )?


Thank you
Fmarka
Technical Details
Message-ID: <4303472a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newspeer.tds.net!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,a1b7fdc400ec1ab2,start
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 17 Aug 2005 17:18:35 +0300
From: fmarka <fmarka@bamba.lt>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internationalization
Subject: BSTR type and Tlabel
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.219.52.163
Message-ID: <4303472a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124288298 193.219.52.163 (17 Aug 2005 07:18:18 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newspeer.tds.net!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail