Hi all.
I was wondering if WDL_FastString could be used to format some cmdline arguments for a third party cmdline app?
I'm currently using std::string for example.
Code:
DWORD dwRetVal = 0;
CHAR lpTempPathBuffer[MAX_PATH] = { NULL };
dwRetVal = GetTempPath(MAX_PATH, // length of the buffer
lpTempPathBuffer);
Code:
string cmdline = (string)+("tools/ddpinfo.exe") + " " + "--version" + " " + "-v 3" + " " + (string)+"\"" + dir_sel + "\"" + " " + "-w" + " " + (string)+"\"" + lpTempPathBuffer + "Image.wav";
The output of the cmdline is:
Code:
tools/ddpinfo.exe --version -v 3 "C:\Users\Wyatt\Desktop\DDP project folder" -w "C:\Users\Wyatt\AppData\Local\Temp\Image.wav
Thanks in advance.
Wyatt