Creating new process with Lua interpreater, failures in passing argumets
Posted
by
user1131997
on Stack Overflow
See other posts from Stack Overflow
or by user1131997
Published on 2012-06-23T09:14:14Z
Indexed on
2012/06/23
9:15 UTC
Read the original article
Hit count: 218
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!
© Stack Overflow or respective owner