Article View: borland.public.cppbuilder.nativeapi
Article #7979Re: Obtaining the Currency Symbol
From: Angus
Date: Fri, 10 Dec 2004 23:12
Date: Fri, 10 Dec 2004 23:12
22 lines
1445 bytes
1445 bytes
what about using
FloatToStrF(0.0, ffCurrency , 6, 2).SubString(1,1);
<Roger Warren> wrote in message news:41b9992f$1@newsgroups.borland.com...
> Hi,
>
> How can I obtain the currency symbol for the currenct locale/regional
> setting? I have tried using:
>
> ...
> struct lconv ll;
> struct lconv *conv = ≪
> conv = localeconv();
> printf("Currency symbol: %s\n", conv->currency_symbol);
> ...
>
> But it doesn't seem to produce anything.
>
> Any help would be appreciated. Thanks.
>
Technical Details
Message-ID:
<41ba2d56@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41b9992f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5c552075733153e4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Angus" <anguspickton@yahoo.com> From: "Angus" <aguspickton@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b9992f$1@newsgroups.borland.com> Subject: Re: Obtaining the Currency Symbol Date: Sat, 11 Dec 2004 12:12:28 +1300 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 219.88.83.204 Message-ID: <41ba2d56@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102720342 219.88.83.204 (10 Dec 2004 15:12:22 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail