Article View: borland.public.cppbuilder.internationalization
Article #889new to wchar_t
From: Michael (Mike) Lewis
Date: Sat, 01 Dec 2001 11:50
Date: Sat, 01 Dec 2001 11:50
17 lines
1469 bytes
1469 bytes
Hi:
I have always used single byte strings, so have no idea how to use wchar_t.
I have a library for use with BCB5 that uses wchar_t for all its strings.
In a simple case of the following (which doesn't work):
int destSize = 512; //how do I calculate this??
wchar_t* dest = new wchar_t(destSize);
dest = OpenDialog1->FileName.WideChar(dest,destSize);
delete dest;
how do I get the OpenDialog1->FileName to be a wchar_t ?
Thank you in advance for your help.
--
Michael (Mike) P. Lewis
Discovery GeoServices Corporation
Technical Details
Message-ID:
<3c08c38d_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,d7800864a6338bdf,start X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-12-01 03:58:28 PST From: "Michael \(Mike\) Lewis" <mike@discoverygeo.com> Newsgroups: borland.public.cppbuilder.internationalization Subject: new to wchar_t Date: Sat, 1 Dec 2001 05:50:13 -0600 Lines: 19 Organization: Discovery GeoServices Corporation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 209.102.204.33 Message-ID: <3c08c38d_2@dnews> X-Trace: dnews 1007207309 209.102.204.33 (1 Dec 2001 03:48:29 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews