lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, May 14, 2009 at 11:29 AM, Lloyd <lloyd@cdactvm.in> wrote:
> Later I may need to add support for another function "my_c_function2()"
> "without recompiling my original application"

If you are not recompiling, then m_c_function2 must exist in the
executable? Or maybe the function exists, but you are not exporting it
explicitly in your Lua interface.

Then one option is to use Alien to dynamically bind to your .dll (or
.exe) and wrap the functions for you, as long as the function is
actually exported by the .dll (__declspec(dllexport) and all that)

For functions that don't need to be ultra-quick, Alien is your friend.

steve d.