>Anyone ever extract out of luac.c the specific code need to on-the-fly >precompile a lua script (ie take a ptr to text and get back a buffer of byte >compiled byte code)? If you're using Lua 5.0, try lua_load followed by lua_dump. --lhf