lua-users home
lua-l archive

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

Hello Jeroen

I have something like this, I can send you the code if you like, it's
probably about 80% done, it might point you in the right direction anyway!


> -----Original Message-----
> From:	Jeroen Janssen []
> Sent:	Monday, May 17, 1999 8:12 AM
> To:	Multiple recipients of list
> Subject:	dynamic loading of windows dll's in lua as plugins?
> Hello,
> I'm working on using lua for a demosystem and I was thinking about a
> pluginsystem using dll's (windows platform) to add lua functions.
> Basicly what I am thinking about is to have LoadLibrary (windows function
> to runtime load a dll) accessable from lua and have a DllMain in such a
> dll
> that makes new C functions available in lua. Thus you can write the
> following script:
> --Start
> LoadLibrary("plugin1.dll")
> LoadLibrary("plugin2.dll")
> functionFromPlugin1("Hello");
> functionFromPlugin2("This is a plugin example!");
> --End
> Is there anybody that has already written something like this for windows?
> is it available from anywhere?
> Thanks in advance,
> Jeroen Janssen