[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Dll and garbage collection
- From: Philippe Lhoste <PhiLho@...>
- Date: Wed, 19 May 2004 19:20:11 +0200
Martin Spernau wrote:
Thanks for the answer. If I understood correctly it's not possible to
have plain Lua executable using libraries from dll's? Instead I have
to use same Lua from dll for application and library?
On win32 at least, that's the situation. A win32 exe apparently can't
export functions like a dll can... (I've seen some pointers that the can
actually be made to do just that, but everybody I asked suggested to
stay away from that...)
A way to do that is to gather all useful exe function pointers in a function that
pass these pointers to another function in the DLL that will store them for further
use inside the DLL.
Note very elegant, prone to problems, but I saw it used in a real e-mail application.
--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://Phi.Lho.free.fr
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--