Article View: borland.public.delphi.nativeapi
Article #136Re: System error messages in other languages
From: Rob Kennedy
Date: Tue, 20 Jan 2004 21:51
Date: Tue, 20 Jan 2004 21:51
14 lines
1594 bytes
1594 bytes
Michael Winter wrote: > Now if an error occurs on the server (e. g. GetLastError returns 2, i. e. > File not found), the client in question would get the message generated by > SysErrorMessage in german, the server's machine language, which is a bit > annoying for a non german user. Could you just send the numeric error code, and let the client machine generate the error message using the local language? You can pass a language identifier as the fourth parameter to FormatMessage. The OS needs to know that language. -- Rob
Technical Details
Message-ID:
<400da2e5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<l9dtev7hicyv.dlg@news.michawinter.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,47c709fe6a10c938 X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-20 14:10:43 PST Date: Tue, 20 Jan 2004 15:51:38 -0600 From: Rob Kennedy <.> Organization: none User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.nativeapi Subject: Re: System error messages in other languages References: <l9dtev7hicyv.dlg@news.michawinter.de> In-Reply-To: <l9dtev7hicyv.dlg@news.michawinter.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.74.197.249 Message-ID: <400da2e5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074635493 68.74.197.249 (20 Jan 2004 13:51:33 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail