lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Several problems with 2.5.27 version on Windows ME


From: Jan Nieuwenhuizen
Subject: Re: Several problems with 2.5.27 version on Windows ME
Date: Sun, 26 Jun 2005 15:24:23 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Brynne and Russ Jorgensen writes:

> I've attached a patch against lilypad-0.0.6-1 that supports both ASCII
> and UNICODE in a single exe.

Thanks.  I would much prefer to keep two executables, and do something like

    --- main.c  10 jun 2005 00:12:14 +0200      1.7
    +++ main.c  26 jun 2005 15:23:21 +0200      
    @@ -380,7 +380,16 @@ int PASCAL WinMain(HINSTANCE hInstance, 
         class.lpszMenuName  = MAKEINTRESOURCE(MAIN_MENU);
         class.lpszClassName = className;

    -    if (!RegisterClassEx(&class)) return FALSE;
    +       /* if system calls fail, there is no unicode support */
    +    if (!RegisterClassEx (&class))
    +      {
    +#ifdef UNICODE
    +   if (GetLastError () == ERROR_CALL_NOT_IMPLEMENTED)
    +     ExitProcess (3);
    +#endif UNICODE
    +       /* FIXME: what happens here? */
    +       return FALSE;
    +     }

         /* Setup windows */

Caller (eg, lilypad.scm) can then decide what to do.  Does this work
for you?

> I read through your version, and it's basically exactly the same as
> mine as far as logic, so I just left your version in my patch.  No
> need for gratuitous changes.

Ok, thanks.

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]