[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Use in Visual Basic
- From: Jamie Webb <j@...>
- Date: Sat, 31 Jan 2004 01:14:07 +0000
> Exported DLL functions are compiled as stdcall, so if the lua stuff
> declares the functions as declspec(__dllexport), then they will be usable
> from VB... but this isn't your problem...
>
> It's not the C->Lua that you will have problems with, it's handling Lua->C
> when lua tries to call back into your VB program. Since that's not going
> thru an exported function, the stack semantics will be mixed.
Can't you just change the callback typedef to use __stdcall (or whatever it
is)?
-- Jamie Webb
EARTH
smog | bricks
AIR -- mud -- FIRE
soda | tequila
WATER