From: John L. <jla...@gm...> - 2012-06-30 20:48:27
|
Ok... lets start fresh and not try to debug the old stuff. Download 2.8.12.1 and try it. I have tested with luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip downloaded from Lua binaries and it works. This is how I did it, put luasocket's bin/ mime/ socket/ dirs as subdirs of the wxLua/bin dir (or anywhere, but then adjust LUA_PATH...) then you can run : lua myapp.lua wxLua myapp.lua wxLuaFreeze myapp.lua wxLuaEdit myapp.lua where myapp.lua has ------ require("socket") print("Is socket here ? ", socket) require("wx") print(print, print_lua) f = wx.wxFrame(wx.NULL, -1, "Hello") f:Show() wx.wxGetApp():MainLoop() ------ Success! Please read here to understand what lua51.dll and lua5.1.dll are all about: http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/modules/luaproxydll/proxydll.c?revision=100&view=markup DO NOT COPY someone else's lua51.dll into the wxLua bin dir, it will never work. ps. Note that I don't think you ever got error messages from wx.dll... When lua.exe is run it does a pcall() on the input file and so it gets the error messages, I don't believe it's even possible for wxLua to get them. I think what you got are print() statements? Though, it has been a long time since 2.8.10 and I have not retested it. I have reinstated the error handler, but it's never called, but it's there and will pop up a dialog if it ever gets called. Run your program from a DOS prompt and the print and error messages will be printed to the console. Regards, John |