[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua+wxWidgets+SWIG
- From: John Labenski <jlabenski@...>
- Date: Thu, 29 Oct 2009 20:51:31 -0400
On Tue, Oct 27, 2009 at 7:13 AM, Dzmitry Hancharou <red1ynx@tut.by> wrote:
> I tested wxLua/apps/wxluacan sample app. In this case from C++ module we can
> run lua-scripts. These scripts can only use those parent modules. That is:
> mod1 = module1.getInst()
> mod1:func1();
> mod1:func2(params);
> and no more.
> And if I add a functional, I need to modify i-file and recompile the entire
> project.
You compiled the app staticly.
> I want to break a problem into several parts like this:
> mod1 = module1.getInst()
> mod2 = module2.getInst()
> mod1:doIt(mod2:getIt())
> In this case if I want to change the first module, I did not recompile the
> second.
>
> Does anyone know how this can be done?
Compile your module as a DLL and use Lua's require() function to load it.
Regards,
John