Article View: borland.public.cppbuilder.nativeapi
Article #1419Re: Convert AnsiString to a wchar_t
From: Wayne Smith
Date: Wed, 22 Aug 2007 17:18
Date: Wed, 22 Aug 2007 17:18
37 lines
1681 bytes
1681 bytes
Damon, I looked at the help, but it wasn't much help. I am including my AnsiString. How would you convert it to a wchar_t? AnsiString temp = "c:\\scanexam\\" + ebDlrNmbr->Text.Trim() + "_" + newnumber.Trim() + ".jpg"; Thanks again, Wayne "Damon Chandler (TeamB)" <editor@NOSPAM.bcbjournal.com> wrote in message news:46cc6e81$1@newsgroups.borland.com... > Hi Wayne, > > Have a look at the AnsiString::WideChar() method. You could also use the > WideString class. > > Cheers, > -- > Damon Chandler (TeamB) > C++Builder Developer's Journal > http://bcbjournal.com > http://bcbjournal.org > > > Wayne Smith wrote: >> Does anyone have an example of converting an AnsiString to a wchar_t? >> >> Thanks in advance, >> Wayne >>
Technical Details
Message-ID:
<46cc7064$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46cc6c77$1@newsgroups.borland.com> <46cc6e81$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d7a8a86c422cc4e7 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Wayne Smith" <wsmith@epgins.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46cc6c77$1@newsgroups.borland.com> <46cc6e81$1@newsgroups.borland.com> Subject: Re: Convert AnsiString to a wchar_t Date: Wed, 22 Aug 2007 12:18:31 -0500 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 67.131.165.93 Message-ID: <46cc7064$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1187803236 67.131.165.93 (22 Aug 2007 10:20:36 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail