[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: dynamic loading of windows dll's in lua as plugins?
- From: Jeroen Janssen <japj@...>
- Date: Mon, 17 May 1999 09:07:26 +0200
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