Creating new process with Lua interpreater, failures in passing argumets
- by user1131997
I need help with passing arguments in CreateProcess() //Windows
I want to:
BOOL status = CreateProcess(L"C:\\Program Files (x86)\\Lua\\lua52.exe",
NULL, NULL, NULL, FALSE, NULL, NULL, NULL, &si, &pi);
But with passing some arguments....
Lua interpreater accepts file with lua-scripts, so I have prepared it and want to do:
lua52 C:\1.lua
for example...
I have the path of some lua-script and want the interpreater of Lua to interpreate it and than get the result of program on Lua from Created process.
I have tried in some ways to do it, but no success.
Please, help!
Thank you!