Article View: borland.public.cppbuilder.internationalization
Article #71WideFormat example
From: Muzaffar Mahkamov
Date: Tue, 20 Sep 2005 07:45
Date: Tue, 20 Sep 2005 07:45
20 lines
1633 bytes
1633 bytes
Hi,
I'm converting my project to Unicode and planning i18n with dggettext.
Right now i'm stuck at using WideFormat that requires open arrays.
Example:
WideString mystr = L"some file";
int mres = MessageDlg(WideFormat("File %s already exists!\nDo you want
to overwrite this file?", ARRAYOFCONST(mystr)), mtConfirmation,
TMsgDlgButtons() << mbYes<<mbYesToAll<<mbNo<<mbCancel<<mbNoToAll , 0);
This gives me "improper use of typedef 'OpenArray<TVarRec>'". All the
examples on the net are for delphi where open arrays are not a problem.
I need a working example of WideFormat with variable string.
Thanks in advance,
Muzaffar
Technical Details
Message-ID:
<432fbe52@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10297d,27ef7e030dcb2379,start X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 20 Sep 2005 12:45:03 +0500 From: Muzaffar Mahkamov <muzaffar@design.uz> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: WideFormat example Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.158.30.197 Message-ID: <432fbe52@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127202386 195.158.30.197 (20 Sep 2005 00:46:26 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail