Article View: borland.public.cppbuilder.nativeapi
Article #15783Re: SetThreadLocale not working???
From: Vladimir Afanasyev
Date: Thu, 19 Jun 2003 08:46
Date: Thu, 19 Jun 2003 08:46
21 lines
1689 bytes
1689 bytes
Hi, "MWP" <mwp@overclockers.com.au> wrote: > >Im using: > >SetThreadLocale(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_NEUTRAL),SORT_DEFAULT)); > >In my NT service to try and solve the problem of INI files being read incorrectly in non English regions and returning this error: > >"Service failed on execute: '1.0' is not a valid floating point value." > >SetThreadLocale is returning "true" meaning it was successful, but im still getting the INI read problems. I am not sure but it seems just a question of your loacal settings. To verify it open Local Settings Applet (page "numbers" ?) and change separator for float numbers. From "," to ".". Vladimir.
Technical Details
Message-ID:
<3ef1787b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ef16833$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8088d88498c22e25 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-19 01:55:02 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: SetThreadLocale not working??? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3ef16833$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ef1787b$1@newsgroups.borland.com> Date: 19 Jun 2003 01:46:51 -0700 X-Trace: newsgroups.borland.com 1056012411 207.105.83.65 (19 Jun 2003 01:46:51 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail