WDL_String filePath; const char *filePathStr; mFileDialog->GetLastSelectedFileForPlug(&filePath); filePathStr = filepath.Get();