There is a function on Lua:
STRING getClassesList()
It returns string as it is to get on c++:
This does not work:
Const char * ClassesStr;
Lua_getglobal (L, "getClassesList");
Lua_pcall (L, 1, 1, 0);
ClassesStr = lua_tostring (L, 1);
stack: 'readQuikAgent' 'attempt to call a table value'
The function is designed to obtain a list of class codes sent from the server during the communication session. The class codes in the list are separated by a comma ",". At the end of the received line, the symbol "," is always appended.
Call format:
STRING getClassesList ()
Example:
List = getClassesList ()
As a result of the above line of code, the list variable contains a string of the form:
OPTEXP, USDRUB, PSOPT, PSFUT, SPBFUT
readQuikAgent?STRING getClassesList()is not a valid Lua function signature.lua_pcall(L, 1, 1, 0)call expects the function and one argument on the Lua stack. You only push the function.