🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#5432
From: Gary Setter
Date: Sun, 14 Aug 2005 14:11
38 lines
2630 bytes
<bottom posting>
> > <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
> >
>
> 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
>
Hi Pete,
Again, thanks. I was kind of hoping that you would answer my questions.
I don't have a problem with finding suitable containers for text.
The class you suggested uses RICHED20.DLL and the window classes RichEdit20A
and RichEdit20W.
My problem is using the nativeapi. If I make an ASCII app, I get questions
marks for non-ASCII characters. If I make a UNICODE app, all my win32 api
calls fail, including LoadLibrary to load RICHED20.DLL.
Again, are you making with UNICODE or (_UNICODE) defined? What version of
windows are you using? Have you tried you app with Windows 98? If so what
were the results?
Thanks for sticking with this!
best regards,
Gary
Technical Details
Message-ID: <42ff513a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!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> <42fe1630@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: "Gary Setter" <setterg@worldnet.att.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42f9580f@newsgroups.borland.com> <42fa2e00@newsgroups.borland.com> <42fa4eab$1@newsgroups.borland.com> <42faa0f7@newsgroups.borland.com> <42fe1630@newsgroups.borland.com>
Subject: Re: How to get Unicode text in a rich text control as 8 bit text.
Date: Sun, 14 Aug 2005 09:11:33 -0500
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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: 12.74.20.75
Message-ID: <42ff513a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124028730 12.74.20.75 (14 Aug 2005 07:12:10 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail