Article View: borland.public.delphi.nativeapi
Article #135System error messages in other languages
From: Michael Winter
Date: Tue, 20 Jan 2004 21:38
Date: Tue, 20 Jan 2004 21:38
23 lines
1752 bytes
1752 bytes
Hi, is there a way to get a Windows system error message for a given error number, using FormatMessage, in another as the system language, or at least in english on a non english system? In my case I have a server application knowing, say, german, english, and french, running on a german W2K machine, and users (clients) with different language settings connect to it. The clients send their language identifier, and the server responds to later client requests in the appropriate language. So far no problem. 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. Is there any way to solve this except including the top 100 error messages by hand? TIA, -Michael
Technical Details
Message-ID:
<l9dtev7hicyv.dlg@news.michawinter.de>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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,47c709fe6a10c938,start X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-20 13:40:44 PST From: Michael Winter <delphi.net@gmx.net> Subject: System error messages in other languages Newsgroups: borland.public.delphi.nativeapi User-Agent: 40tude_Dialog/2.0.8.1de Hamster/1.3.23.205 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: Tue, 20 Jan 2004 22:38:27 +0100 Message-ID: <l9dtev7hicyv.dlg@news.michawinter.de> NNTP-Posting-Host: 145.254.128.45 X-Trace: newsgroups.borland.com 1074634696 145.254.128.45 (20 Jan 2004 13:38:16 -0700) Lines: 23 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