I have made a small class for helping with reading and writing parameters between C++ and LUA and also calling LUA functions from C++. I'm sharing this little thing here.
Using the class is quite simple as shown below
LUA - part
C++ - part
I have included is a test project which looks like this in the editor
And like this when executed
Here is the LuaBridge class source
And the complete test project
Note: Its says 'Click for next test', should be 'Hit Spacebar for next test'