From: shelarcy <she...@ca...> - 2005-11-30 13:59:20
|
On Wed, 30 Nov 2005 20:49:32 +0900, Eric Y. Kow <Eri...@lo...> wrote= : > That's great news, thanks very much. I have tested your patches under > Linux and Mac and (as would be expected) they also seem to work. > > You can also download the patch here: > http://www.loria.fr/~kow/download/patch-wxhaskell-unicode-07 Hmm... you forgot two point in your newer patch. One is eljbitmap.cpp must also chage three lines for Windows, like this. --- wxhaskell-0.9.4.orig/wxc/src/ewxw/eljbitmap.cpp Wed Nov 30 21:57:14 =20 2005 +++ wxhaskell-0.9.4/wxc/src/ewxw/eljbitmap.cpp Wed Nov 30 21:44:19 2005 @@ -92,7 +92,7 @@ EWXWEXPORT(int, wxBitmap_RemoveHandler)(void* name) { #ifdef __WIN32__ - return (int) wxBitmap::RemoveHandler((char*) name); + return (int) wxBitmap::RemoveHandler((wxChar*) name); #else return 0; #endif @@ -101,7 +101,7 @@ EWXWEXPORT(void*, wxBitmap_FindHandlerByName)(void* name) { #ifdef __WIN32__ - return (void*)wxBitmap::FindHandler((char*) name); + return (void*)wxBitmap::FindHandler((wxChar*) name); #else return NULL; #endif @@ -110,7 +110,7 @@ EWXWEXPORT(void*, wxBitmap_FindHandlerByExtension)(void* extension, int= =20 type) { #ifdef __WIN32__ - return (void*)wxBitmap::FindHandler((char*)extension, (long)type); + return (void*)wxBitmap::FindHandler((wxChar*)extension, (long)type); #else return NULL; #endif I added this patch. Anthor is the line end problem in Visual Studio (C++)' s project files. wxcu-2.6.2.dsp and wxcu-2.6.2.dsw should use CR + LF for line terminator. I don't know your enviorment can use CR + LF line terminator well. If you can't, I will change final patch on tracker. > For further reference, I have opened a new item on the sf tracker > which should help the wxhaskell developers to follow the development > of this patch: > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1369929&= group_id=3D73133&atid=3D536847 --=20 shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |