You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(60) |
Jul
(35) |
Aug
(32) |
Sep
(5) |
Oct
(5) |
Nov
(58) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(114) |
Feb
(184) |
Mar
(153) |
Apr
(90) |
May
(153) |
Jun
(59) |
Jul
(24) |
Aug
(43) |
Sep
(17) |
Oct
(34) |
Nov
(11) |
Dec
(204) |
2007 |
Jan
(84) |
Feb
(119) |
Mar
(38) |
Apr
(28) |
May
(52) |
Jun
(105) |
Jul
(64) |
Aug
(67) |
Sep
(14) |
Oct
(3) |
Nov
(28) |
Dec
(55) |
2008 |
Jan
(228) |
Feb
(55) |
Mar
(30) |
Apr
(30) |
May
(15) |
Jun
(20) |
Jul
(12) |
Aug
(3) |
Sep
(13) |
Oct
(54) |
Nov
(35) |
Dec
(35) |
2009 |
Jan
(19) |
Feb
(20) |
Mar
(34) |
Apr
(4) |
May
(60) |
Jun
(25) |
Jul
(16) |
Aug
(51) |
Sep
(19) |
Oct
(62) |
Nov
(21) |
Dec
(12) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(12) |
May
(23) |
Jun
(13) |
Jul
(1) |
Aug
(40) |
Sep
(18) |
Oct
(21) |
Nov
(26) |
Dec
(34) |
2011 |
Jan
(17) |
Feb
(23) |
Mar
(1) |
Apr
(10) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(43) |
2012 |
Jan
(5) |
Feb
(19) |
Mar
(6) |
Apr
(24) |
May
(39) |
Jun
(83) |
Jul
(29) |
Aug
(36) |
Sep
(64) |
Oct
(55) |
Nov
(12) |
Dec
(7) |
2013 |
Jan
(17) |
Feb
(10) |
Mar
(37) |
Apr
(27) |
May
(13) |
Jun
(9) |
Jul
(7) |
Aug
(61) |
Sep
(23) |
Oct
(23) |
Nov
(30) |
Dec
(16) |
2014 |
Jan
(23) |
Feb
(13) |
Mar
(9) |
Apr
(17) |
May
(2) |
Jun
(11) |
Jul
(2) |
Aug
|
Sep
(9) |
Oct
(24) |
Nov
(2) |
Dec
(14) |
2015 |
Jan
(6) |
Feb
(4) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(3) |
Jul
|
Aug
|
Sep
(2) |
Oct
(21) |
Nov
(6) |
Dec
(2) |
2016 |
Jan
(4) |
Feb
(2) |
Mar
(7) |
Apr
(3) |
May
(11) |
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(4) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: marcos <mar...@ya...> - 2006-08-06 23:29:34
|
I get this error on VC6. --------------------Configuration: mod_wxluasocket - Win32 DLL Release Multilib-------------------- Linking... wxlua_msw26_wxlua.lib(wxlua_msw26_wxlua.dll) : error LNK2005: "class wxString __cdecl lua2wx(char const *)" (?lua2wx@@YA?AVwxString@@PBD@Z) already defined in wxlsock.obj wxlua_msw26_wxlua.lib(wxlua_msw26_wxlua.dll) : error LNK2005: "class wxCharBuffer const __cdecl wx2lua(class wxString const &)" (?wx2lua@@YA?BVwxCharBuffer@@ABVwxString@@@Z) already defined in wxlsock.obj wxlua_msw26_wxlua.lib(wxlua_msw26_wxlua.dll) : warning LNK4006: "class wxString __cdecl lua2wx(char const *)" (?lua2wx@@YA?AVwxString@@PBD@Z) already defined in wxlsock.obj; second definition ignored wxlua_msw26_wxlua.lib(wxlua_msw26_wxlua.dll) : warning LNK4006: "class wxCharBuffer const __cdecl wx2lua(class wxString const &)" (?wx2lua@@YA?BVwxCharBuffer@@ABVwxString@@@Z) already defined in wxlsock.obj; second definition ignored Creating library ..\..\..\lib\vc_dll/wxlua_msw26_wxluasocket.lib and object ..\..\..\lib\vc_dll/wxlua_msw26_wxluasocket.exp ..\..\..\lib\vc_dll\wxlua_msw26_wxluasocket.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. wxlua_msw26_wxluasocket.dll - 3 error(s), 2 warning(s) Help! -- Marcos E. Wurzius _______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ |
From: Doug C. <dou...@gm...> - 2006-08-06 18:37:48
|
Here are some things I did to build wxLua_Snapshot_2006-08-04.tar.gz on Windows XP using mingw/msys. I don't pretend that these are the "right" fixes for wxLua sources. Many are to generated files rather than source files -- done out of ignorance of the full build process. Others may interfere with successful builds with other tools or on different targets. I am reporting them to help those attempting to build with mingw/msys; maybe the authors/maintainers will find them useful as well. I started with an installed wxWidgets 2.6.3 and wxstedit 1.2.1. I extracted wxLua_Snapshot_2006-08-04.tar.gz and did a $ ../configure --disable-debug --enable-shared --enable-unicode --enable-wxluaedit-app configure was unable to find wxstedit; apparently the method the configure script uses to find wxstedit is not meant for Windows, it seems to mess up with WXDLLEXPORT. Ignoring that, I did a make. It proceeds for a while and then fails to compile wx_bind.cpp (this has been reported earlier on this list as a bug in mingw's gcc 3.4.x). 1. hack wx_bind.cpp after make chokes on it inserting these lines: #ifdef __MINGW32__ const wxPoint wxDefaultPositionHack = wxDefaultPosition; const wxSize wxDefaultSizeHack = wxDefaultSize; #define wxDefaultPosition wxDefaultPositionHack #define wxDefaultSize wxDefaultSizeHack #endif before: WXLUAOBJECT* wxLuaGetObjectList_wx(size_t &count) 2. in modules/wxluadebug/src/splttree.cpp add: #ifdef __MINGW32__ #undef UNREFERENCED_PARAMETER #endif after includes and before: static wxTreeItemId defaultTreeItemId; 3. in {my-build}/modules/Makefile add -lws2_32 to WX_LIBS 4. in {my-build}/apps/Makefile change: WX_RESCOMP = to: WX_RESCOMP = windres --include-dir /usr/local/include/wx-2.6 5. in apps/wxlua/src/wxlua.rc remove "..\\" from icon 6. in {my-build}/apps/Makefile add -lws2_32 to WX_LIBS 7. in apps/wxluacan/src/cansim.rc remove "..\\" from icon 8. in apps/wxluafreeze/src/wxluafreeze.rc remove "..\\" from icon e |
From: Richard S. <ric...@gm...> - 2006-08-06 12:53:42
|
Sorry bout slow reply: On 8/2/06, John Labenski <jla...@gm...> wrote: > On 8/1/06, Richard Simes <ric...@gm...> wrote: > > Thanks for the tips, > > > > I think I'll be going with wxWidgets in C++, rather than wxLua as wxLua > > seems to have a few memory leaks... > > is this just my setup? > > What wxLua version are you using? > Latest release - 2.6.2.0 I tried out a snapshot and yes, there was a significant improvement. I've decided to stick with the C++ anyway though - this project is entirely a learning experience so thought it was worth improving my C++ as well as my lua ;-) I've now got it working to a reasonable level... have a look If you like: http://www.mcs.vuw.ac.nz/~simesrich/luacalc-latest.tar.gz supports excel-like functions & sorting. Richard |
From: John L. <jla...@gm...> - 2006-08-04 15:28:50
|
There's no reason I can think of why this shouldn't work, even if it does seem a little odd. Good luck, John Labenski On 8/3/06, Steve Kieu <ha...@ya...> wrote: > > Hi everyone, > > I am thinking a solution but not yet implemented to > test it. I use wxApp to hold the data. So in MyApp > class I add two methods: > > void SetGlobalObj(wxLuaState* ); > void GetGlobalObj(wxLuaState* ); > > In SetGlobal I will get the lua table or light user > data (it could be a table / or lightuserdata from a > lua state.) Then set a member of MyAPP (which could be > an r array or pointer) to hold the references. In > GetGlobalObj I will push these pointer into a global > lua table so in lua code (another lua state) I will > get the references. After that I will dynamiccast to > the wx class type and use it. > > So in second lua state call wxGetApp() and cast it to > MyApp() then call GetGlobalObj(**) > > The purpose for now in my app is to use an already > contructed wxSocket and pass it to the new thread that > use different lua state. But if the above is correct > then I can see some other usage as well. > > Any comment on it or I am just crazy :-) > > Cheers, > > > S.KIEU > > Send instant messages to your online friends http://au.messenger.yahoo.com > > > ---------- Forwarded message ---------- > From: Steve Kieu <ha...@ya...> > To: wxl...@li... > Date: Thu, 27 Jul 2006 13:05:20 +1000 (EST) > Subject: Multiple wxLuaState share global howto? > > Hi everyone, > > In C++ code I create two separated wxLuaState and I > want them to have the same global variables (which > means from both luas script run by each state I can > access one same global variables. > > Is it possible and if yes how? Thanks you very much. > > Kind regards, > > > > S.KIEU > > Send instant messages to your online friends http://au.messenger.yahoo.com > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Wxlua-users mailing list > Wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > > > |
From: John L. <jla...@gm...> - 2006-08-04 15:21:27
|
On 8/4/06, klaas.holwerda <kla...@nl...> wrote: > From my bindings.i file i get generated things like: > > extern (int) a2dDrawer2D_methodCount; > and > extern (int) s_wxluatag_a2dLauWrapper; > > On fedora gcc 4.0.0-8 this does not compile, if i remove the () and make > plain int all is oke. > > Why is it (int), maybe it is better to generate it as only int? You need to add these lines to your rules file probably. Just use the dummy macros i you don't want to export them. -- Set the DLLIMPEXP macros for compiling these bindings into a DLL -- Use "WXLUA_NO_DLLIMPEXP" and "WXLUA_NO_DLLIMPEXP_DATA" for no IMPEXP macros output_cpp_impexpsymbol = "WXDLLIMPEXP_WXBIND" output_cpp_impexpdatasymbol = "WXDLLIMPEXP_DATA_WXBIND" -John Labenski |
From: klaas.holwerda <kla...@nl...> - 2006-08-04 09:07:41
|
Hi, From my bindings.i file i get generated things like: extern (int) a2dDrawer2D_methodCount; and extern (int) s_wxluatag_a2dLauWrapper; On fedora gcc 4.0.0-8 this does not compile, if i remove the () and make plain int all is oke. Why is it (int), maybe it is better to generate it as only int? regards, Klaas -- Unclassified |
From: Steve K. <ha...@ya...> - 2006-08-03 23:55:40
|
Hi everyone, I am thinking a solution but not yet implemented to test it. I use wxApp to hold the data. So in MyApp class I add two methods: void SetGlobalObj(wxLuaState* ); void GetGlobalObj(wxLuaState* ); In SetGlobal I will get the lua table or light user data (it could be a table / or lightuserdata from a lua state.) Then set a member of MyAPP (which could be an r array or pointer) to hold the references. In GetGlobalObj I will push these pointer into a global lua table so in lua code (another lua state) I will get the references. After that I will dynamiccast to the wx class type and use it. So in second lua state call wxGetApp() and cast it to MyApp() then call GetGlobalObj(**) The purpose for now in my app is to use an already contructed wxSocket and pass it to the new thread that use different lua state. But if the above is correct then I can see some other usage as well. Any comment on it or I am just crazy :-) Cheers, S.KIEU Send instant messages to your online friends http://au.messenger.yahoo.com |
From: John L. <jla...@gm...> - 2006-08-02 03:54:43
|
On 8/1/06, Richard Simes <ric...@gm...> wrote: > Thanks for the tips, > > I think I'll be going with wxWidgets in C++, rather than wxLua as wxLua > seems to have a few memory leaks... > is this just my setup? What wxLua version are you using? > eg, the editor.wx.lua runs fine at first, but if I leave it open for more > than 15 minutes it becomes unusable with ~100mb ram and ~ 85% processor. > I'm running ubuntu 5 on an amd athlon xp There have been some fixes to the garbage collection in wxLua since the last release. I don't see this using the snapshots. Hopefully we'll have a new release in the next few weeks, the summer has been very busy for me. :) > Although, My C++ isn't brilliant so I'll no doubt introduce some myself. > > With the help of wxGlade I was able to get a basic grid interface working, > with a custom wxGridTableBase that will soon contain some basic bindings to > my lua code. Good luck, you can also use the wxLuaState in C++ and the binding generation code if you want to mix C++ and Lua a little more easily. If you're not alreasy using a snapshot, try to compile it and hopefully the mem leak you see is fixed. Regards, John Labenski > > On 8/1/06, John Labenski <jla...@gm...> wrote: > > On 7/30/06, Richard Simes <ric...@gm...> wrote: > > > I have just started writing a spreadsheet program in lua that supports > > > functions, cell ranges and sorting. have got to the point where it > really > > > needs a user interface to be useable to anyone so am investigating > wxLua. > > > > Lua should make scripting arbitrary functions fairly easy. > > > > Wonderfully easy - I have the lua api working well. > I'll post a link to lua-l as soon as I get a working prototype ;-) > Thanks for the help. > > Richard > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Wxlua-users mailing list > Wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > > > |
From: John L. <jla...@gm...> - 2006-08-02 03:42:38
|
Thanks! You're perfectly right about using LastCount(), in fact the wxWidgets docs even suggest that for the ReadMsg() function. -John Labenski On 8/1/06, Steve Kieu <ha...@ya...> wrote: > > Hi everyone, > > I have problem when using wxSocket in wxLua, ReadMsg > return some garbage at the end of the string. The > senario is: > > c. WriteMsg(luastr, luastr:len()) > s. ReadMsg(80) // 80 is assured to be much bigger > than luastr:len() > > If using in C++ (wxWidgets) the buffer returned by > ReadMsg (even the nbytes is much bigger than the len > actually written to socket) is the correct len. Have > looked at the wxWidget source code and verify this. > However if using it in Lua, I get garbage string at > the end. > > So I propose to change this line: > > lua_pushlstring(L, (const char *)buffer, nbytes); > > to > > lua_pushlstring(L, (const char *)buffer, > self->LastCount()); // skieu > > in > wxLua_wxSocketBase_Read(lua_State *L) and > wxLua_wxSocketBase_ReadMsg(lua_State *L) > > I am not sure of the side effect of that change but it > worked for me, I never get any garbage since then :-) > > Any comment? > > Cheers > > > S.KIEU > > Send instant messages to your online friends http://au.messenger.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wxlua-users mailing list > Wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > |
From: Steve K. <ha...@ya...> - 2006-08-01 22:02:32
|
Hi everyone, I have problem when using wxSocket in wxLua, ReadMsg return some garbage at the end of the string. The senario is: c. WriteMsg(luastr, luastr:len()) s. ReadMsg(80) // 80 is assured to be much bigger than luastr:len() If using in C++ (wxWidgets) the buffer returned by ReadMsg (even the nbytes is much bigger than the len actually written to socket) is the correct len. Have looked at the wxWidget source code and verify this. However if using it in Lua, I get garbage string at the end. So I propose to change this line: lua_pushlstring(L, (const char *)buffer, nbytes); to lua_pushlstring(L, (const char *)buffer, self->LastCount()); // skieu in wxLua_wxSocketBase_Read(lua_State *L) and wxLua_wxSocketBase_ReadMsg(lua_State *L) I am not sure of the side effect of that change but it worked for me, I never get any garbage since then :-) Any comment? Cheers S.KIEU Send instant messages to your online friends http://au.messenger.yahoo.com |
From: Richard S. <ric...@gm...> - 2006-08-01 05:08:39
|
Thanks for the tips, I think I'll be going with wxWidgets in C++, rather than wxLua as wxLua seems to have a few memory leaks... is this just my setup? eg, the editor.wx.lua runs fine at first, but if I leave it open for more than 15 minutes it becomes unusable with ~100mb ram and ~ 85% processor. I'm running ubuntu 5 on an amd athlon xp Although, My C++ isn't brilliant so I'll no doubt introduce some myself. With the help of wxGlade I was able to get a basic grid interface working, with a custom wxGridTableBase that will soon contain some basic bindings to my lua code. On 8/1/06, John Labenski <jla...@gm...> wrote: > > On 7/30/06, Richard Simes <ric...@gm...> wrote: > > I have just started writing a spreadsheet program in lua that supports > > functions, cell ranges and sorting. have got to the point where it > really > > needs a user interface to be useable to anyone so am investigating > wxLua. > > Lua should make scripting arbitrary functions fairly easy. Wonderfully easy - I have the lua api working well. I'll post a link to lua-l as soon as I get a working prototype ;-) Thanks for the help. Richard |
From: John L. <jla...@gm...> - 2006-08-01 04:50:14
|
On 7/30/06, Richard Simes <ric...@gm...> wrote: > I have just started writing a spreadsheet program in lua that supports > functions, cell ranges and sorting. have got to the point where it really > needs a user interface to be useable to anyone so am investigating wxLua. Lua should make scripting arbitrary functions fairly easy. > How can I use a wxGrid in such a way that the value typed into a cell is not > the same as the value displayed? (if a function is inputted) This is probably best done using a lua table in addition to the wxGrid's "cell value" which is just the displayed string value. The lua table could store the values using a string represenation of the coords, eg. string.format("%d, %d", row, col). > I imagine i need to call grid:SetDefaultRenderer() > can a cell renderer object be defined from lua? As it's user-data, I suspect > this might not be possible? SetDefaultRenderer has been broken in wxWidgets for years, I submitted a patch quite some time ago, but I think it's been lost since. You can catch the events for set cell value and put them into a separate lua table and then write to the wxGrid what the output of the function or whatever was entered should be. I think this would be simplest and should be enough. > Help would be appreciated, though I suppose I should read up on wxWidgets a > bit more before I launch into this myself... The wxGrid component is hard to get a handle on at first glance, but hopefully since you don't have to compile as in C++ you can get something going fairly quickly. Regards, John Labenski |
From: Richard S. <ric...@gm...> - 2006-07-30 07:05:46
|
Hi List, I'm completely new to wxLua so forgive me if I'm in going completely in the wrong direction. I have just started writing a spreadsheet program in lua that supports functions, cell ranges and sorting. have got to the point where it really needs a user interface to be useable to anyone so am investigating wxLua. How can I use a wxGrid in such a way that the value typed into a cell is not the same as the value displayed? (if a function is inputted) I imagine i need to call grid:SetDefaultRenderer() can a cell renderer object be defined from lua? As it's user-data, I suspect this might not be possible? Help would be appreciated, though I suppose I should read up on wxWidgets a bit more before I launch into this myself... Richard |
From: John L. <jla...@gm...> - 2006-07-28 19:17:32
|
On 7/26/06, Steve Kieu <ha...@ya...> wrote: > In C++ code I create two separated wxLuaState and I > want them to have the same global variables (which > means from both luas script run by each state I can > access one same global variables. > > Is it possible and if yes how? Thanks you very much. I don't think this is possible. How would you keep the two states updated with the each other's global vars? You could try to push your own C function and catch the __newindex (IIRC) and the other metatable functions for the global table _G and explicitly copy the values between the two states. Good luck, John Labenski |
From: John L. <jla...@gm...> - 2006-07-28 03:22:53
|
On 7/26/06, Chris Cockburn <wan...@ho...> wrote: > I'm very new to using wxlua and I was wondering if there are any good > tutorials around on the wbe that show how to setup wxlua in c++ as my > searches have ended up with me running around in circles. There is a install.html file in the docs dir that should help, also here http://wxlua.sourceforge.net/docs/install.html > But to the problem I've created a gui using the luaeditor app but now I > would like to make it a standalone .exe and I've run into a problem while > compiling. If I use #include "wxlua/include/wxlua.h" or #include > "wxlua/include/wxlstate.h" I get a lot of compile errors in the wxlbind.h > along the lines of. > > error C2143: syntax error : missing ';' before '*' > error C2501: 'WXLUACLASS::wxClassInfo' : missing storage-class or type > specifiers These errors make no sense? WXLUACLASS is a struct without any wxClassInfo at all! You get the wxClassInfo typically from a DECLARE_[ABSTRACT/DYNAMIC]_CLASS in a class declaration. What are the line numbers and a little bit of the code? What version of wxLua are you using, one of the snapshots? > Am I missing some other include files that I need to include? I have looked > at the c++ apps that came with wxlua (although I havent tried compiling any > of them) and it doesnt seem they are doing anything different when including > either of those files. Maybe you're defining WXDLLIMPEXP_WXLUA to something strange? > Currently I'm using visual studio .net 2003 as a compiler and wxlua 2.6.3. > Any help would be greatly appreciated. You should definitely try to compile the samples using the build files in the build dirs as a start. I use the MSVC 2005, the free GUI compiler without any problems building using the non-dll DEBUG or RELEASE settings. Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-07-27 22:41:13
|
Hi everyone, In C++ code I create two separated wxLuaState and I want them to have the same global variables (which means from both luas script run by each state I can access one same global variables. Is it possible and if yes how? Thanks you very much. Kind regards, S.KIEU Send instant messages to your online friends http://au.messenger.yahoo.com |
From: Chris C. <wan...@ho...> - 2006-07-27 05:00:32
|
Hi all, I'm very new to using wxlua and I was wondering if there are any good tutorials around on the wbe that show how to setup wxlua in c++ as my searches have ended up with me running around in circles. But to the problem I've created a gui using the luaeditor app but now I would like to make it a standalone .exe and I've run into a problem while compiling. If I use #include "wxlua/include/wxlua.h" or #include "wxlua/include/wxlstate.h" I get a lot of compile errors in the wxlbind.h along the lines of. error C2143: syntax error : missing ';' before '*' error C2501: 'WXLUACLASS::wxClassInfo' : missing storage-class or type specifiers Am I missing some other include files that I need to include? I have looked at the c++ apps that came with wxlua (although I havent tried compiling any of them) and it doesnt seem they are doing anything different when including either of those files. Currently I'm using visual studio .net 2003 as a compiler and wxlua 2.6.3. Any help would be greatly appreciated. Chris |
From: John L. <jla...@gm...> - 2006-07-20 16:13:48
|
On 7/19/06, Steve Kieu <ha...@ya...> wrote: > > Hi, > > Have built the non unicode os wxWidgets and wxLua and have no problem with > it (the new conversion code) Thanks for the fix, I've just tried it in non unicode MSW and it works fine. It committed now. Thanks, John Labenski |
From: John L. <jla...@gm...> - 2006-07-20 16:03:00
|
On 7/19/06, Steve Kieu <ha...@ya...> wrote: > > I think it's ok. This is one of the overridden functions where the > function call doesn't take the input wxArrayString, but rather returns > the array as a lua table. > > // %override [unsigned int, lua string table] wxDir::GetAllFiles(const > wxString& dirname, const wxString& filespec = "", int flags = > wxDIR_DEFAULT) > > My apology, it is just that I read the un commented line > > %wxchkver23 static unsigned int GetAllFiles(const wxString& dirname, > wxArrayString *files, const wxString& filespec = "", int flags = > wxDIR_DEFAULT) > > and still think that the method is still using *files its argument so I > still pass dummy args into it and it failled, then whining about it :-). I > should look at the override line . The uncommented line is written exactly as the C++ function is to make it easy to check that the parameters are the same when the files are updated to a newer version of wxWidgets. I've tried to document all the %override functions in the .i files appropriately. > What do you think? On one hand it's nice to use the native lua table > for arrays like this, but on the other hand the bindings are easier > with fewer overrides and confusion with the wxWidgets docs if we keep > it as a wxArrayString. > I personally prefer lua table; as I can get it out, process it using lua > code etc. It is just much easier to use lua then , my memory is not good, > and lots of time I have to open wx docs to find a method name etc.. but I > can not forget : > for i,v in pairs(bla) do :-) end Ok then we'll keep it this way. There are only a few of these so it's not a big deal to maintain them. Regards, John Labenski |
From: Steve K. <ha...@ya...> - 2006-07-20 00:07:55
|
Hi, Have built the non unicode os wxWidgets and wxLua and have no problem with it (the new conversion code) Cheers, S.KIEU --------------------------------- The LOST Ninja blog: Exclusive clues, clips and gossip. |
From: Steve K. <ha...@ya...> - 2006-07-19 22:31:14
|
I think it's ok. This is one of the overridden functions where the function call doesn't take the input wxArrayString, but rather returns the array as a lua table. // %override [unsigned int, lua string table] wxDir::GetAllFiles(const wxString& dirname, const wxString& filespec = "", int flags = wxDIR_DEFAULT) My apology, it is just that I read the un commented line %wxchkver23 static unsigned int GetAllFiles(const wxString& dirname, wxArrayString *files, const wxString& filespec = "", int flags = wxDIR_DEFAULT) and still think that the method is still using *files its argument so I still pass dummy args into it and it failled, then whining about it :-). I should look at the override line . I have been wondering if it might be simpler to use wxArrayString for these cases rather than returning a lua table of strings. You can always use the added function wxArrayString:ToLuaTable() to get it as a table if you like. What do you think? On one hand it's nice to use the native lua table for arrays like this, but on the other hand the bindings are easier with fewer overrides and confusion with the wxWidgets docs if we keep it as a wxArrayString. I personally prefer lua table; as I can get it out, process it using lua code etc. It is just much easier to use lua then , my memory is not good, and lots of time I have to open wx docs to find a method name etc.. but I can not forget : for i,v in pairs(bla) do :-) end Cheers, S.KIEU --------------------------------- Do you Yahoo!? Yahoo! Personals: It's free to check out our great singles! |
From: Steve K. <ha...@ya...> - 2006-07-19 22:16:03
|
Hi John, The sample is very simple. You create any frame with a text widgets on it, Enable wxTE_RICH and wxTE_RICH2 as well. Add some code to display the getvalue of the text widget and display it using wx.wxMessageBox for example. You will get null (nothing displayed) The unicode sample you can get from this site http://vnexpress.net/ just copy some text there and paste. -- Sample code f=wx.wxFrame(wx.wxNull, -1, "") s0=wx.wxBoxSizer(wx.wxVERTICAL) f:SetSizer(s0) idtext=wx.wxID_HIGHEST+1 text=wx.wxTextCtrl(f, idtext, "", wx.wxDefaultPosition, wx.wxDefaultSize, wx.wxTE_MULTILINE+wx.wxTE_RICH+wx.wxTE_RICH2) b0=wx.wxButton(f, 10000, "Display") s0:AddWindow(text) s0:AddWindow(b0) f:Connect(-1, wx.wxEVT_COMMAND_BUTTON_CLICKED, function (e) wx.wxMessageBox(text:GetValue() ) end) f:Show(true) -- end sample code The problem only happened in win32 (all window version). Linux GTK is fine which make me think it is a bug in the wxWidget conversion code in win32. Actually I did not find errors in the old code, but in wxWidgets we just have too many ways of doing such conversions and the old wxLua code is not the same as the code I usually using in my apps which proves to work fine (I have had lots of strange problem in these conversion things until I found a reliable way of doing such conversion) So I replace it with my code and it works as expected. John Labenski <jlabenski@g Where did you get the Unicode string that doesn't work in your sample program? Could you post one? I tried different things in wxGTK compiled in Unicode, but I had no problem with the original conversion Yeah as I said, only happen in win32. Do we also need to care about embedded NULLS? There is a lua function to get the string as well as it's length, maybe we should use that too? Perhaps the unicode string had embedded NULLs? The sample in the website I said before is Vietnamese text ; coding using standard UTF-8, not quite sure if it contain NULL but I guess not. > #if wxUSE_UNICODE > return wxString(luastr, wxConvUTF8); The above part is tested as I use the unicode built of wxWidgets > #else > return wxString(wxConvUTF8.cMB2WC(luastr), *wxConvCurrent); Always wxConvUTF8 in Unicode? Not wxConvCurrent? Have not tested in non Unicode built of wxWidgets. but in this case I gues it will use wxMBConv.cMB2WC or wxConvLibc.cMB2WC. So this part should change accordingly (it may even work without changes but let me test in non unicode built first) I don't understand why in non unicode you convert it to a WC array and then back. You should be able to just to "return wxString(luastr)" since everything is ASCII. Even wxWidgets is built without unicode support but the string we get it might contain unicode chars so it is not pure ASCII. Cheers, S.KIEU --------------------------------- On Yahoo!7 Messenger: Make free PC-to-PC calls to your friends overseas. |
From: John L. <jla...@gm...> - 2006-07-18 22:30:47
|
On 7/15/06, Steve Kieu <ha...@ya...> wrote: > > I found a bug in method GetAllFiles(). The overwrite function pass the wrong > parameters positions. I think it's ok. This is one of the overridden functions where the function call doesn't take the input wxArrayString, but rather returns the array as a lua table. // %override [unsigned int, lua string table] wxDir::GetAllFiles(const wxString& dirname, const wxString& filespec = "", int flags = wxDIR_DEFAULT) I have been wondering if it might be simpler to use wxArrayString for these cases rather than returning a lua table of strings. You can always use the added function wxArrayString:ToLuaTable() to get it as a table if you like. What do you think? On one hand it's nice to use the native lua table for arrays like this, but on the other hand the bindings are easier with fewer overrides and confusion with the wxWidgets docs if we keep it as a wxArrayString. Regards, John Labenski > static int LUACALL wxLua_wxDir_GetAllFiles(lua_State *L) > { > wxLuaState wxlState(L); > unsigned int returns; > // get number of arguments > int argCount = lua_gettop(L); > // int flags = wxDIR_DEFAULT > > // Wrong code follow. SHould be 5 not 4 as the first param is luastate > > // int flags = (argCount >= 4 ? (int)wxlState.GetNumberType(4) : > wxDIR_DEFAULT); > > int flags = (argCount >= 5 ? (int)wxlState.GetNumberType(5) : > wxDIR_DEFAULT); > > // const wxString& filespec = "" > > // 3 is wrong, should be 4 > > wxString filespec = (argCount >= 4 ? lua2wx(wxlState.GetStringType(4)) : > wxString(wxT(""))); > // wxArrayString *files > wxArrayString files; > // const wxString& dirname > wxString dirname = lua2wx(wxlState.GetStringType(2)); > // call GetAllFiles > returns = wxDir::GetAllFiles(dirname, &files, filespec, flags); > // push the result number > lua_pushnumber(L, returns); > wxlState.PushwxArrayStringTable(files); > // return the number of parameters > return 2; > } > > > Cheers, > > > > > S.KIEU > > ________________________________ > Do you Yahoo!? > Yahoo! Personals: It's free to check out our great singles! > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > Wxlua-users mailing list > Wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > > > |
From: John L. <jla...@gm...> - 2006-07-18 22:22:38
|
On 7/9/06, Steve Kieu <ha...@ya...> wrote: > > Hi all, Sorry about the delay, I was out of the country on work. > I have fixed the unicode problem (my previous post) by changing: Where did you get the Unicode string that doesn't work in your sample program? Could you post one? I tried different things in wxGTK compiled in Unicode, but I had no problem with the original conversion code. I am not expereienced with Unicode so the original code was from some posts on wx-users and the STC contrib about how to convert back and forth. Do we also need to care about embedded NULLS? There is a lua function to get the string as well as it's length, maybe we should use that too? Perhaps the unicode string had embedded NULLs? > in wxLua/modules/wxlua/include/wxlstate.h function lua2wx > and wx2lua like below > > inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr) > { > if (luastr == NULL) > return wxEmptyString; > #if wxUSE_UNICODE > return wxString(luastr, wxConvUTF8); > #else > return wxString(wxConvUTF8.cMB2WC(luastr), *wxConvCurrent); > #endif > //return wxConvertMB2WX(luastr); // this fails on NULL > } Always wxConvUTF8 in Unicode? Not wxConvCurrent? I don't understand why in non unicode you convert it to a WC array and then back. You should be able to just to "return wxString(luastr)" since everything is ASCII. > inline const WXDLLIMPEXP_WXLUA wxCharBuffer wx2lua(const wxString& wxstr) > { > //wxCharBuffer buffer(wxConvertWX2MB(wxstr.c_str())); // origin > // wxCharBuffer buffer=wxstr.mb_str(wxConvUTF8); // skieu > wxCharBuffer buffer=wxConvUTF8.cWC2MB(wxstr.wc_str(*wxConvCurrent)); // > skieu > return buffer; > } Originally: wxConvertWX2MB == wxConvCurrent->cWX2MB(wchar_t* s) cWX2MB returns wxUSE_UNICODE ? cWC2MB(wchar_t* psz) : psz So again, always use wxConvUTF8? > Any comment on it? It fixes the problems for me and not create more problem > in Linux. Have not tested with non unicode built of wxWidgets though. I > still do not know why the problem happend in win32 only, I will try it in MSW in non unicode tomorrow and GTK w/ unicode tonight. Thanks, John Labenski > ---------- Forwarded message ---------- > From: Steve Kieu <ha...@ya...> > To: wxl...@li... > Date: Sun, 9 Jul 2006 07:55:27 +1000 (EST) > Subject: wxString, Unicode problem .... > Hi everyone, > > I found a problem in win32 wrt unicode things. My test program is simple a > multiline text widgets ; cut and paste a unicode text into the widgets and > display the value using GetValue() by wx.wxMesasgeBox. In Linux it is > working as expected. But in win2k, winXP , win98, it does not display > anything pssibly the value is nil. If the text is not unicoded then it > displayed correctly. > > Wxwidgets in win32 compiled with unicode support and mslu support. Normal wx > apps is fine. > > wxLua is the snapshot wxLua_Snapshot_2006-06-21.tar.gz > > Is it a known problem and has been fixed in the current snapshot ? How to > debug (if it is a bug then ) > > The following is the code smaple > > > f=wx.wxFrame(wx.wxNull, -1, "") > s0=wx.wxBoxSizer(wx.wxVERTICAL) > f:SetSizer(s0) > text=wx.wxTextCtrl(f, 10004, "", wx.wxDefaultPosition, wx.wxDefaultSize, > wx.wxTE_MULTILINE) > b0=wx.wxButton(f, 10000, "Display") > s0:AddWindow(text) > s0:AddWindow(b0) > > f:Connect(-1, wx.wxEVT_COMMAND_BUTTON_CLICKED, function (e) > > wx.wxMessageBox(text:GetValue()) > > end) > > f:Show(true) > > Cheers, > > > > S.KIEU > > Send instant messages to your online friends http://au.messenger.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > Wxlua-users mailing list > Wxl...@li... > https://lists.sourceforge.net/lists/listinfo/wxlua-users > > > |
From: Steve K. <ha...@ya...> - 2006-07-15 23:08:56
|
Hi, I found a bug in method GetAllFiles(). The overwrite function pass the wrong parameters positions. static int LUACALL wxLua_wxDir_GetAllFiles(lua_State *L) { wxLuaState wxlState(L); unsigned int returns; // get number of arguments int argCount = lua_gettop(L); // int flags = wxDIR_DEFAULT // Wrong code follow. SHould be 5 not 4 as the first param is luastate // int flags = (argCount >= 4 ? (int)wxlState.GetNumberType(4) : wxDIR_DEFAULT); int flags = (argCount >= 5 ? (int)wxlState.GetNumberType(5) : wxDIR_DEFAULT); // const wxString& filespec = "" // 3 is wrong, should be 4 wxString filespec = (argCount >= 4 ? lua2wx(wxlState.GetStringType(4)) : wxString(wxT(""))); // wxArrayString *files wxArrayString files; // const wxString& dirname wxString dirname = lua2wx(wxlState.GetStringType(2)); // call GetAllFiles returns = wxDir::GetAllFiles(dirname, &files, filespec, flags); // push the result number lua_pushnumber(L, returns); wxlState.PushwxArrayStringTable(files); // return the number of parameters return 2; } Cheers, S.KIEU --------------------------------- Do you Yahoo!? Yahoo! Personals: It's free to check out our great singles! |