Re: [wxlua-users] cvs compile and wxLocale

2007-06-28 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/28/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > > Ok, what about this... (lets pass on the XXXSelectorPrompts since they > seem to work now.) > > Before the struct, put this (preferred) > > wxEventType* wxLUA_EVT_COMMAND_FILEPICKER_CHANGED = > &wxEVT_COMMAND_FI

Re: [wxlua-users] cvs compile and wxLocale

2007-06-28 Thread John Labenski
On 6/28/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > John Labenski wrote: > > On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > [snip] > > Does this work? > > > > { "wxEVT_COMMAND_FILEPICKER_CHANGED", > > (const wxEventType*)&wxEVT_COMMAND_FILEPICKER_CHANGED, > > > > No. ICE. > > > o

Re: [wxlua-users] cvs compile and wxLocale

2007-06-28 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: [snip] > Does this work? > > { "wxEVT_COMMAND_FILEPICKER_CHANGED", > (const wxEventType*)&wxEVT_COMMAND_FILEPICKER_CHANGED, > No. ICE. > or > > &((const wxEventType)wxEVT_COMMAND_FILEPICKER_CHANGED), > No. erro

Re: [wxlua-users] cvs compile and wxLocale

2007-06-27 Thread John Labenski
On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > John Labenski wrote: > > On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > >> Ok, narrowed more.. If I uncomment one of them compiler dies. I tried to > >> simplify #if front of them, but didn't succeded. > >> > >> [wxLuaGetEventLi

Re: [wxlua-users] cvs compile and wxLocale

2007-06-27 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Ok, narrowed more.. If I uncomment one of them compiler dies. I tried to >> simplify #if front of them, but didn't succeded. >> >> [wxLuaGetEventList_wx] >> { "wxEVT_COMMAND_DIRPICKER_CHANGED", &wxEVT_COMMAND_DIRPIC

Re: [wxlua-users] cvs compile and wxLocale

2007-06-27 Thread John Labenski
On 6/27/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > > Ok, narrowed more.. If I uncomment one of them compiler dies. I tried to > simplify #if front of them, but didn't succeded. > > [wxLuaGetEventList_wx] > { "wxEVT_COMMAND_DIRPICKER_CHANGED", &wxEVT_COMMAND_DIRPICKER_CHANGED, > &s_wxluatag_wxFi

Re: [wxlua-users] cvs compile and wxLocale

2007-06-27 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Exact positions are: >>[snip] > > And if you just leave wxEVT_COMMAND_DIRPICKER_CHANGED as the only > unremmed item it doesn't work? ? What about commenting parts of the > #if statement to narrow things d

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > Exact positions are: > > wxLuaBindEvent* wxLuaGetEventList_wx(size_t &count) > { > static wxLuaBindEvent eventList[] = > { > /*hd... > #if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && > ((wxLUA_USE_wxDirPickerCtrl || wxLU

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, John Labenski wrote: > 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 > c

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
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 strin

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >>> I think I found the reason of requiring szDomain parameter to translate.. >>> >>> [intl.h] >>> virtual const wxChar * >>> GetString(const wxChar *szOrigString, >>>const wxChar *szDomain = NULL) const; >

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
I committed a fix using "str:IsEmpty() ? NULL : str.c_str()", but I'd still like to know if we can just use "str.c_str()". Thanks, John Labenski On 6/26/07, John Labenski <[EMAIL PROTECTED]> wrote: > On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > > > > > > I think I found the reason o

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > > > > I think I found the reason of requiring szDomain parameter to translate.. > > > > [intl.h] > > virtual const wxChar * > > GetString(const wxChar *szOrigString, > >const wxChar *szDomain = NULL) const; > > > > szDomain is decla

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, [snip] >>> >>> loc = wx.wxLocale(wx.wxLANGUAGE_TURKISH) >>> >>> print(loc:GetString("&About")) --not translated >>> print(loc:GetString("&About", "wxstd")) --translated >>> >>> print(wx.wxGetTranslation("&About")) --not translated >>> print(wx.wxGetTranslation("&About", "wxstd")) --translated

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Since it compiled with gcc-4.1.2 I tried to find my other -translation- >> problem first. After -all day- compiling with different configurations, >> a few minutes ago I found the reason! (Why it is always the last

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Since it compiled with gcc-4.1.2 I tried to find my other -translation- > problem first. After -all day- compiling with different configurations, > a few minutes ago I found the reason! (Why it is always the last one you > look for?) > > loc =

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> John Labenski wrote: >>> On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: Hi, (xp,wx2.8.4,mingw) - Current cvs gives internal compiler error for wx_bind.cpp at line 493 wi

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread John Labenski
On 6/26/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > John Labenski wrote: > > On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> (xp,wx2.8.4,mingw) > >> > >> - Current cvs gives internal compiler error for wx_bind.cpp at line 493 > >> with gcc-3.4.5. It compiles with

Re: [wxlua-users] cvs compile and wxLocale

2007-06-26 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> (xp,wx2.8.4,mingw) >> >> - Current cvs gives internal compiler error for wx_bind.cpp at line 493 >> with gcc-3.4.5. It compiles with un-official gcc-4.1.2. > > What is the code for this? I think the line

Re: [wxlua-users] cvs compile and wxLocale

2007-06-25 Thread Hakki Dogusan
Hi, John Labenski wrote: > On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> (xp,wx2.8.4,mingw) >> >> - Current cvs gives internal compiler error for wx_bind.cpp at line 493 >> with gcc-3.4.5. It compiles with un-official gcc-4.1.2. > > What is the code for this? I think the line

Re: [wxlua-users] cvs compile and wxLocale

2007-06-25 Thread John Labenski
On 6/25/07, Hakki Dogusan <[EMAIL PROTECTED]> wrote: > Hi, > > (xp,wx2.8.4,mingw) > > - Current cvs gives internal compiler error for wx_bind.cpp at line 493 > with gcc-3.4.5. It compiles with un-official gcc-4.1.2. What is the code for this? I think the line numbers have changed as I did some upd

[wxlua-users] cvs compile and wxLocale

2007-06-25 Thread Hakki Dogusan
Hi, (xp,wx2.8.4,mingw) - Current cvs gives internal compiler error for wx_bind.cpp at line 493 with gcc-3.4.5. It compiles with un-official gcc-4.1.2. - I'm trying to use wxLocale but didn't succeded. Is something like as following working for you? require"wx" loc = wx.wxLocale(wx.wxLANGUAGE