LPCTSTR applicationName = NUL // NULL => module name from command line
string argument1 = "something";
string argument2 = "anotherthing";
LPTSTR commandLine = "childpath\\child.exe";
success = CreateProcess(
applicationName,
commandLine,
processSecurityAttrs,etc...)
What I am trying to do here is trying to pass parent's command line args to child. But it is LPTSTR
, I do not know how to combine string
and LPTSTR
type and pass it to the child. It gives me type def. error. I use Visual Studio 2013 and C++.