Article View: borland.public.cppbuilder.database.ado
Article #5878AnsiString and char
From: ������
Date: Tue, 26 Dec 2000 11:41
Date: Tue, 26 Dec 2000 11:41
8 lines
1331 bytes
1331 bytes
When I want to get a char from a AnsiString and use function SendMessage(hwndEdit,WM_CHAR,char,0) to enter a char to a TEdit component,I find if the AnsiString include single-byte char and milti-byte char,I couldn't use cirlce sentence to enter all chars one by one into the TEdit component exactly.but I can use SendMessage(hwndEdit,WM_CHAR,'��',0) to enter a milti-byte exactly.How can I get right milti-byte char from a AnsiString exactly.I have tried using AnsiString.WideChar() method and failed.Who can help me? Thanks a lot.
Technical Details
Message-ID:
<3a4883b7_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!210.74.235.237Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,b713d52238d992e,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2000-12-26 03:41:22 PST From: "������" <duningjun@163.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: AnsiString and char Date: Tue, 26 Dec 2000 19:41:39 +0800 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 210.74.235.237 Message-ID: <3a4883b7_2@dnews> X-Trace: 26 Dec 2000 03:40:39 -0800, 210.74.235.237 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!210.74.235.237