Re: ? Identifying Current Language Code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alec S. (a_at_a.com)
Date: 09/08/04


Date: Wed, 8 Sep 2004 19:46:14 -0400


    Sort of; I was using

CString strT;
int iResult=0;
iResult = ::GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTLANGUAGE,
strT.GetBufferSetLength(10), 10);

    I gives a system local.

    Yours seems good too, I'll try that.

--
Alec S.
alec <@> synetech <.> cjb <.> net

""Peter Huang"" <v-phuang@online.microsoft.com> wrote in message
news:%23WhLpoUlEHA.1936@cpmsftngxa10.phx.gbl...
> Hi Alec,
>
> Have you tried the code below.
> LCID lid = GetThreadLocale();
> char buf[1024];
> sprintf(buf,"%d",(int)lid);
> AfxMessageBox(buf);
>
> Best regards,
>
> Peter Huang
> Microsoft Online Partner Support
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>