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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel