James Sutherland <[EMAIL PROTECTED]> wrote:

>> James Sutherland <[EMAIL PROTECTED]> wrote:
>> 
>> >> I would suggest to use FormatMessage() API instead of inventing new
>> >> interface. You even could add new error codes if you wish to extend
>> >> an existing functionality.
>> >
>> >Which API is that? It looks like a Win32 one from here, which tends to
>> >suggest I can't use it in Unix programs...
>> 
>> Certainly, we are talking about the Wine debugging messages, no?
>> Wine internally should use its own (i.e. Win32) API or, in rare exceptions,
>> services provided by the underlying OS.
>
>The library I am talking about is for Unix programs. In Wine's case, I
>would consider internal debugging/failure messages to be a "rare
>exception" where Wine should use underlying services. Otherwise, how do
>you debug the debugger if it depends on itself?! (Imagine trying to print
>the error message for "Wine file and memory subsystem hosed" or
>equivalent...)

As pointed out by Patrik Stridvall, version of FormatMessage for debugger
must use only Unix API. But ability of using of localized messages, messages
from system, user defined message tables along with other very useful options
make use of this API very handy and convenient.

Dmitry.


Reply via email to