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.
> >>
> >> [wxLuaGetEventList_wx]
> >> { "wxEVT_COMMAND_DIRPICKER_CHANGED", &wxEVT_COMMAND_DIRPICKER_CHANGED,
> >> &s_wxluatag_wxFileDirPickerEvent },
> >> { "wxEVT_COMMAND_FILEPICKER_CHANGED", &wxEVT_COMMAND_FILEPICKER_CHANGED,
> >> &s_wxluatag_wxFileDirPickerEvent },
> >
> > These look like they're defined in the same way as any other event.

I really don't know about this...

DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_CORE,
wxEVT_COMMAND_DIRPICKER_CHANGED, 1103)

DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_CORE,
wxEVT_COMMAND_FILEPICKER_CHANGED, 1102)

Why would this work? (note 1102 isn't used anyway)

DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_CORE,
wxEVT_COMMAND_COLOURPICKER_CHANGED, 1102)

Does this work?

{ "wxEVT_COMMAND_FILEPICKER_CHANGED",
(const wxEventType*)&wxEVT_COMMAND_FILEPICKER_CHANGED,

or

&((const wxEventType)wxEVT_COMMAND_FILEPICKER_CHANGED),

> >> [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 },

> 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.

Regards,
    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

Reply via email to