From: Hakki D. <dog...@tr...> - 2007-06-28 12:15:42
|
Hi, John Labenski wrote: > On 6/27/07, Hakki Dogusan <dog...@tr...> 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. error: non-lvalue in unary `&' >>>> [wxLuaGetStringList_wx] >>>> { "wxDirSelectorPromptStr", wxDirSelectorPromptStr }, >>>> { "wxFileSelectorPromptStr", wxFileSelectorPromptStr }, >>> If it doesn't fail on wxFileSelectorDefaultWildcardStr, which is >>> declared exactly like the two above, then I dunno. >> Want to hear something more confusing? Code compiles with static >> configuration (I'm building ds284u.dll with adding wxLua sources to >> Code::Blocks project, and using wx as static lib). > > I changed the two above to explicitly use wxT("whatever wxWidgets uses") > > To be sure, this does not work? > > { "wxDirSelectorPromptStr", (const wxChar*)wxDirSelectorPromptStr }, > No. ICE. >> But Mingw's official compiler is gcc-3.4.5; IMHO, It would be good to >> find a solution/workaround.. > > Ok. > >> It seems you forgot to update wxLocale::GetString functions for .c_str >> thing.. :) > > Fixed now. > Thanks. > Regards, > John Labenski > -- Regards, Hakki Dogusan |