[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Game oriented usage of Lua?
- From: Jeroen Janssen <japj@...>
- Date: Thu, 27 May 1999 09:29:55 +0200
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 :
#ifdef LUA_EXPORTS
#define LUA_API __declspec(dllexport)
#else
#define LUA_API __declspec(dllimport)
#endif
and then befor every function and external variable I added
LUA_API
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
>now.
:)
> Anyone here care to share any other already-known "gotchas" with the DLL
>approach?
well, what DLL approach do you mean? having Lua in a DLL or having plugins
in a DLL?
best regards,
Jeroen Janssen