On Tue, 18 Apr 2000, Eric Pouech wrote:
>Serge Ivanov wrote:
>>
>> I'm working on FileOpen dialog and I need system message table to display
>> some file system specific errors. Actual windows counterpart does this, and
>> some applications also use FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM) to get
>> message text for system errors. Currently, kernel32 doesn't have any
>> resources at all. We also don't have message compiler, though wrc does
>> understand MESSAGETABLE resource type, and we have LoadMessage function to
>> load them.
>>
>> So, does anybody have something nearly working for message compiler, or I
>> can go and compile message script file using Microsoft's MC. Also where is
>> the best place to put kernel32 specific resource file (is win32 good
>> enough)?
>check out: www.winehq.com/News/2000-07.html#0
>(I know there should a search engine on WWN ;-)
>Dave Pickles seems to have been hacking a bit on this part, you can try to
>get in touch with him (I remember him providing some pre-patches - proof
>of concept oriented - a few months ago)
>
>HTH
Hello.
Back in February I looked at the FORMAT_MESSAGE_FROM_SYSTEM message text
problem. After discussion here it seemed the best solution was to put the
messages into Wine itself rather than trying to modify wrc just to provide
this one function.
I submitted a patch which replaced the present "SystemMessage xxx" with the
error name from winerror.h for each error number, so eg
"ERROR_ACCESS_DENIED" for error number 5. Not a great improvement but the
intention was that these messages could be replaced over time with more
meaningful ones in the various languages Wine supports. The patch ended up
in the great byte bucket but I never got round to finding out why.
Dave Pickles