lua-users home
lua-l archive

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

At 02:05 5/27/99 -0300, you wrote:
> >> Geez, maybe I should leak those cheats!
>   Er, you're trying to keep yourself from getting fired, remember?  ;-)

yeah, it's very nice to know that GF uses Lua, but to much details can
spoil things :)

>   Status report:  Finally bit the bullet and launched MSVC5.  (been
>playing with Lua on AIX so far)  Awk'd and manually hacked together a quick
>.def file for the main API and built myself a DLL.  Geesh, no problem at

ah... I edited the .H files and added :

#define LUA_API __declspec(dllexport)
#define LUA_API __declspec(dllimport)

and then befor every function and external variable I added


Next I created a dl project and added the necessary source files and
compiled the thing.

>all!  :->  Still have to try it with full errors/warnings on, and integrate
>the optional libraries, and investigate that external state variable, but
>the DLL works!  :->  Then, just to torture it, I wrote a minimal import
>spec for Delphi (pascal) and called the DLL from there, made a little
>expression evaluator via lua_dostring, and everything worked yet again! 

are u using Delphi for a specific reason? 

>   Ok, my cheeks are getting sore from smiling so much, I'm going to stop


>   Anyone here care to share any other already-known "gotchas" with the DLL

well, what DLL approach do you mean? having Lua in a DLL or having plugins
in a DLL?

best regards,

Jeroen Janssen