On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote:
> >
> > What about just this? Remove the IsEmpty and NULL. Does it work just
> > using c_str()?
>
> No, it didn't work. ( "" != NULL Isn't it?)
It should be the same.
const char* str = "";
should be the same as
const char* str = {0};
since strings are always NULL terminated.
Maybe w_char (for unicode) is different, but IIRC unicode (utf16 at
least) just uses two NULLS as a termination?
Anyway, I applied a fix using "str.IsEmpty() ? NULL : str.c_str()"
> BTW, I'm testing for gcc-3.4.5 now. Compiler dies at static struct
> definitions while compiling wx_bind.cpp.
>
> To see, I commented following, and it compiles:
>
> static wxLuaBindEvent eventList[] = {
> /* ... */
> { 0, 0, 0 },
> };
And if you comment out the first and then the second half of the
arrays it doesn't work? I'd guess that one of the elements is
problematic or that there's too many #if statements.
Thanks,
John Labenski
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users