I'm trying to convert a WDL_String from the IFileSelectorControl into a std::string to send it to a function from an external library.
I've tried the suggestion from this thread
https://forum.cockos.com/showthread.php?t=173135
Code:
WDL_String filePath;
std::string filePathStr;
mFileDialog->GetLastSelectedFileForPlug(&filePath);
filePathStr = filepath.Get();
But nothing is seems to pass to filePathStr.
How can I make this conversion?