我需要创建一个变量来使用CreateProcess:
CreateProcess(z7Cmdline, z7Arg, NULL, NULL, FALSE, NULL, NULL, NULL, &startInfo, &processInfo);
Run Code Online (Sandbox Code Playgroud)
变量z7Arg是7 -zip的参数列表,其中包含基于当前日期的文件名,即:2017-12-13.zip.
string buArg = "-o""c:\\moshe"" a " + buDir + buFileName + "c:\\moshe\\*.pdf";
Run Code Online (Sandbox Code Playgroud)
我想将buArg复制到z7Arg作为LPTSTR,以便在CreateProcess例程中使用
我该怎么办呢?
我是C++编码的新手,30年前我使用IBM Fortran和汇编语言为Grumman Aerospace编写程序,但从那以后我做了很少的编码.