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_FILEPICKER_CHANGED;
> 

Nope. ICE - message changed to segmentation error.

> or maybe just this
> 
> wxEventType wxLUA_EVT_COMMAND_FILEPICKER_CHANGED =
> wxEVT_COMMAND_FILEPICKER_CHANGED;
> 

This one worked :)

I added line ~71:

wxEventType wxLUA_EVT_COMMAND_FILEPICKER_CHANGED = 
wxEVT_COMMAND_FILEPICKER_CHANGED;

wxEventType wxLUA_EVT_COMMAND_DIRPICKER_CHANGED = 
wxEVT_COMMAND_DIRPICKER_CHANGED;

And changed usage:

{ "wxEVT_COMMAND_DIRPICKER_CHANGED", 
&wxLUA_EVT_COMMAND_DIRPICKER_CHANGED, &s_wxluatag_wxFileDirPickerEvent },

{ "wxEVT_COMMAND_FILEPICKER_CHANGED", 
&wxLUA_EVT_COMMAND_FILEPICKER_CHANGED, &s_wxluatag_wxFileDirPickerEvent },


> or even
> 
> wxEventType& wxLUA_EVT_COMMAND_FILEPICKER_CHANGED =
> wxEVT_COMMAND_FILEPICKER_CHANGED;
> 
> 
> Then use the "local" variable in the struct (as appropriate for what
> you use above)
> 
> { "wxEVT_COMMAND_FILEPICKER_CHANGED",
>   wxLUA_EVT_COMMAND_FILEPICKER_CHANGED,
> 
> There's a hack for mingw for wxDefaultPosition and wxDefaultSize at
> the top of modules/wxbind/src/wx_bind.cpp that does something similar
> and it even has the same error right?
> 
> // FIX: "internal compiler error: output_operand: invalid expression as 
> operand"
> 
> -------------
> 
> Other than that, I'm afraid that we simply have to be #ifdef
> !MINGW3.4.5, unless you can think of something else. Is there
> something that MingW defines that we can use as a check, instead of
> the obviously wrong MINGW3.4.5 above?
> 

ps. Please remove WXDLLIMPEXP_WXLUA from following functions:

warning: inline function `wxString lua2wx(const char*)' declared as 
dllimport: attribute ignored
warning: inline function `const wx CharBuffer wx2lua(const wxString&)' 
declared as dllimport: attribute ignored
warning: inline function `void wx lua_terror(lua_State*, const 
wxString&)' declared as dllimport: attribute ignored



> Thanks,
>     John Labenski
> 


--
Regards,
Hakki Dogusan


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