Original Post
Hi All, I got a string from C++ code in Lua script. This string is the name of a Lua function in this Lua script file. I received this string and just use this string and plus "()" to execute, but nothing happen. It seems this method causes to function is not "alive". How can I execute Lua function by string? Anybody could help me? Thanks a lot! example Lua script: function a() print("a") end fname = getLuaFunctionNamefromC() -- fname is "a" fname() -- is equivalent to call a(), -- but nothing happened!