On Fri, 14 Jul 2000, Bertho Stultiens wrote:
>Dave Pickles wrote:
>> Thanks to Bertho, Wine now has the tools to implement the
>> FORMAT_MESSAGE_FROM_SYSTEM version of FormatMessage(). I'll do the work if
>> no-one else has started, but I would appreciate some pointers.
>> 
>> In particular, where should the messages be stored? In Win9x they are in
>> KERNEL32.DLL. In Wine they should perhaps be in a .so library, but is it
>> possible to attach resources to a .so?
>
>You can always build a seperate DLL, lets say winemsg.dll, which holds
>no more than a lot of messagetable resources (and an empty entrypoint)?
>But, for compatibility's sake, shouldn't the messages be simply attached
>to kernel32's resources? I guess that even NT has the sys-messages in
>the kernel (not sure though).
>
>Greetings Bertho

Hmmm I forgot that Wine has an emulation of KERNEL32.DLL ;-(

It seems I can probably use the same technique as the 'nls' resources in
dlls/kernel/nls. Size is an issue though. There are 111 language variants
defined in dlls/kernel/nls, and as the message text in Win95 [1] is around
45Kb that's 5Mb of messages if all are included! Windoze of course has
separate variants for the different languages. In practice I presume
rather fewer languages would suffice.

Dave Pickles

[1] No, I'm *not* planning to copy the Windoze messages!

Reply via email to