[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Dll and garbage collection
- From: "Jim Wuerch" <miwa@...>
- Date: Wed, 19 May 2004 16:27:26 -0700
> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of
> Martin Spernau
> Sent: Wednesday, May 19, 2004 2:52 AM
> To: Lua list
> Subject: Re: Dll and garbage collection
>
>
> 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...)
>
Win32 .exe's can export functions just fine. One of my apps does this for
it's global functions for plugins to call back to. (I have used both
methods, linking against the app's export library, and using GetProcAddress
to get the exported function addrs).
There's not all that much difference between a win32 DLL and an EXE. Both
are fully linked. It's mostly what the loader does (and having DllMain
instead of WinMain).
Jim