lua-users home
lua-l archive

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

Thanks Paul!

I will give this technique a try in Grunt as it does look easier (and more
efficient) than a VFS solution. If we can put DLLs as well as Lua scripts in
resources this would be a self-contained solution to packaging Lua
applications in executable form. Sadly though, Windows only - but you cannot
have everything!

> -----Original Message-----
> From: [mailto:lua-
>] On Behalf Of Peter Cawley
> Sent: 07 September 2009 14:20
> To: Lua list
> Subject: Re: Is a Lua system easily embeddable?
> Googling for "dll from memory" (without quotes) turns up
> which
> starts by describing the appropriate structures and methods, and then
> has an MPL licensed library to load DLLs from memory.
> On Mon, Sep 7, 2009 at 11:29 AM, Paul Moore<> wrote:
> > 2009/9/7 Jerome Vuarand <>:
> >> Just for the sake of precision, I'd like to point that while the
> >> standard Windows DLL loader is not capable of loading DLLs from
> >> another DLL resource, afaik all its features are reproducible in
> user
> >> code (it's not using kernel black magic). Therefore it's possible to
> >> load DLLs from anywhere. Some libraries out there allow loading DLLs
> >> from in-memory buffers with the exact same capabilities and
> interface
> >> as the standard win32 LoadLibrary+GetProcAddress.
> >
> > Ooh! Can you provide pointers? Or at least suitable phrases to Google
> > for? I've been interested in this for ages, but never found anything
> > usable...
> >
> > Paul
> >