Article View: borland.public.cppbuilder.nativeapi
Article #6034Re: Relating Registry to Windows Dialogs ...
From: Vladimir Stefanovic
Date: Sun, 12 Jun 2005 07:04
Date: Sun, 12 Jun 2005 07:04
19 lines
1416 bytes
1416 bytes
Darko wrote:
> What you seek is in fact this:
>
> std::string GetSysLanguage(void) {
> char buffer[5] = {};
> int ret = ::GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,
> LOCALE_IDEFAULTLANGUAGE , buffer, 5);
> return std::string(buffer);
> }
I have tested the code and it works exactly as I needed.
Nice to have a compatriot somewhere around ;)
--
Best regards,
Vladimir Stefanovic
Technical Details
Message-ID:
<42abde6f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.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:
<42ab4ea6$1@newsgroups.borland.com> <42ab9d82$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,28dc13a0fe5cc15e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <42ab4ea6$1@newsgroups.borland.com> <42ab9d82$1@newsgroups.borland.com> Subject: Re: Relating Registry to Windows Dialogs ... Date: Sun, 12 Jun 2005 09:04:21 +0200 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 82.117.212.65 Message-ID: <42abde6f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118559855 82.117.212.65 (12 Jun 2005 00:04:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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