[wxlua-users] Apps fail to build against wx with -fno-exceptions

2012-06-26 Thread strawman
wxLua from SVN builds successfully against wxMSW 2.9.3 with USE_EXCEPTIONS=0 (-fno-exceptions) set in wx's config.gcc, but building apps fails with the attached error. Using -fno-exceptions in wxLua's makefile causes no issues. Additionally, building apps against wx with DEBUG_FLAG = 0 set in

Re: [wxlua-users] Multibyte characters not working with Unicode build

2012-05-02 Thread strawman
On 02/05/2012 04:52, John Labenski wrote: > Sorry about the delay, I committed a fix to SVN that I hope should > work. We've gone through this before, but I think this time it's > right. Now we always treat Lua as UTF8. > > Note that it only works with wxWidgets built in Unicode mode and has > been

Re: [wxlua-users] Multibyte characters not working with Unicode build

2012-04-19 Thread strawman
On 19/04/2012 05:27, John Labenski wrote: > What version of wxWidgets are you using? 2.8 or 2.9 This was with 2.8.12; I just built wxLua against 2.9.3 and tried again, and it's now returning an empty string instead of nil. I'm building with TDM-GCC, if it makes any difference. > What is the t

[wxlua-users] Multibyte characters not working with Unicode build

2012-04-17 Thread strawman
With a Unicode build of wxMSW and wxLua, trying to access any string containing multibyte characters (e.g. with wxTextCtrl::GetValue) returns nil. The same issue is present in the wxLua editor; if any multibyte characters are in the buffer when a script is saved, the saved file is 0 bytes in l

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-17 Thread strawman
On 13/04/2012 23:06, John Labenski wrote: > ps. Do a SVN update. I had the signature wrong on > wxLuaDataObjectSimple::SetData() so it would never be called by > wxWidgets. Looks like this was the issue; thanks again for the help, it works perfectly now.

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-12 Thread strawman
On 12/04/2012 05:23, John Labenski wrote: > Is that what you're doing or are you trying to get HTML data from copying from some other program? I'm trying to get HTML clipboard data from Firefox/Chrome; they register a format called "HTML Format" at runtime, which has a different internal ID to

Re: [wxlua-users] Deriving from wxDataObjectSimple

2012-04-11 Thread strawman
On 09/04/2012 04:57, John Labenski wrote: > Usage is as follows: > > > d = wx.wxLuaDataObjectSimple(wx.wxDataFormat("asd")) > > d.data = "x" -- store the data somewhere > > print(d:SetData("aaa"), d.data, d:GetDataSize(), d:GetDataHere()) > > d.GetDataSize = function(d) ret

[wxlua-users] Deriving from wxDataObjectSimple

2012-04-07 Thread strawman
From the wx docs for wxDataObjectSimple: "Notice that this is still an abstract base class and cannot be used but should be derived from. The objects supporting rendering the data must override GetDataSize and GetDataHere while the objects which may be set must override SetData." Is it possibl