[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Will Lua work in this situation?
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 14 May 2009 11:39:15 +0200
On Thu, May 14, 2009 at 11:29 AM, Lloyd <email@example.com> 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.