🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get Unicode text in a rich text control as 8 bit text.

#5529
From: Pete Fraser
Date: Sat, 13 Aug 2005 15:47
28 lines
2135 bytes
The data you have should be WideString (Unicode)
You can then convert it to AnsiString and use that.
AnsiString has a constructor that takes a WideString....or do you want more 
than that.
HTH Pete

"Gary Setter" <setterg@worldnet.att.net> wrote in message 
news:42faa0f7@newsgroups.borland.com...
>
> "Pete Fraser" <pete.fraser@frasersoft.nospam.com> wrote in message
> news:42fa4eab$1@newsgroups.borland.com...
>> Tak a look at Robert Dunns Richedit control which does all that you want.
>> http://home.att.net/~robertdunn/Yacs.html
>> HTH Pete
> <snip>
>
> Hi Pete,
> Thanks for the post. I had downloaded this before. Since it is a c++
> wrapper, it doesn't overcome limitations in the Richedit control. I read
> again the TaeRichEdit.cpp module. I don't see him doing anything different
> then I'm doing in the area of extracting text.
>
> Are you using the this code to work with Unicode? Did you compile with
> UNICODE defined? Are you using a Windows version of Win2000 or higher?
>
> Again thanks for the post,
> Gary Setter
> 
Technical Details
Message-ID: <42fe1630@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42f9580f@newsgroups.borland.com> <42fa2e00@newsgroups.borland.com> <42fa4eab$1@newsgroups.borland.com> <42faa0f7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ae6457c103542367
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pete Fraser" <pete.fraser@frasersoft.nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42f9580f@newsgroups.borland.com> <42fa2e00@newsgroups.borland.com> <42fa4eab$1@newsgroups.borland.com> <42faa0f7@newsgroups.borland.com>
Subject: Re: How to get Unicode text in a rich text control as 8 bit text.
Date: Sat, 13 Aug 2005 16:47:55 +0100
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.5.150.204
Message-ID: <42fe1630@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123948080 80.5.150.204 (13 Aug 2005 08:48:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail