🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #890

Re: new to wchar_t

#890
From: Michael (Mike) Lewis
Date: Mon, 03 Dec 2001 05:01
25 lines
1740 bytes
Well, never-mind!  I found the WideString class, which seems to handle
everything with EASE!!

"Michael (Mike) Lewis" <mike@discoverygeo.com> wrote in message
news:3c08c38d_2@dnews...
> 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: <3c0b06ae$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c08c38d_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,d7800864a6338bdf
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2001-12-02 21:08:42 PST
From: "Michael \(Mike\) Lewis" <mike@discoverygeo.com>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3c08c38d_2@dnews>
Subject: Re: new to wchar_t
Date: Sun, 2 Dec 2001 23:01:18 -0600
Lines: 27
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: <3c0b06ae$1_2@dnews>
X-Trace: dnews 1007355566 209.102.204.33 (2 Dec 2001 20:59:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews