PDA

View Full Version : PB DLL and LUA Table????



TimeSurfer
05-09-2008, 12:48 AM
Ok I was fine until I got to this point lol.

Im creating another dll in purebasic which is using a linked list, my question is dont i need someway of returning my linked list as a lua table for use in ams??? and how dwould i do that:huh im lost any ideas suggestions would be helpful

Worm
05-09-2008, 07:17 AM
only way is to pass the lua_state into the DLL which means your dll has to have a lua lib.

reteset
05-09-2008, 11:30 AM
and,it seems, you can access it with only C/C++ (at least i know so)
because there is no Lua API for other than C language

Worm
05-09-2008, 12:51 PM
Actually, I've ported the Action portion of the SDK from C++ to PB with a Lua Library. My Timer Action Plugin is written in PB.

BUT for some reason, it doesn't play nice with VISTA

TimeSurfer
05-09-2008, 12:54 PM
k thanks guys now I just need to figure out how to implement it lol, theres a the lua static lib has been ported to pb its a lil outdated I think but should work... on aother note what are you guys using for c/c++ as far as coding n compiling.. notepad?

Worm
05-09-2008, 01:08 PM
there is always this method too

http://www.icynorth.com/development/lua50modulelcc.html

TimeSurfer
05-09-2008, 02:30 PM
there is always this method too

http://www.icynorth.com/development/lua50modulelcc.html

great stuff worm...thanks m8:yes