如何在C++Builder和boost字符串之间转换?

如何在C++Builder和boost字符串之间转换?,boost,c++builder,edit,unicode-string,Boost,C++builder,Edit,Unicode String,我有一个应用程序,它在文件系统的一部分中搜索文件。用户应该在编辑框中输入文件名,这样我就可以将其值分配给UnicodeString变量。那么我如何将其转换为boost::filesystem::path呢 使用UnicodeString的w_str方法检索wchar\t* 可能有帮助 UnicodeString foo = Edit1->Text; boost::filesystem::path p(foo.w_str());

我有一个应用程序,它在文件系统的一部分中搜索文件。用户应该在编辑框中输入文件名,这样我就可以将其值分配给UnicodeString变量。那么我如何将其转换为boost::filesystem::path呢

使用UnicodeString的w_str方法检索wchar\t*

可能有帮助
UnicodeString foo = Edit1->Text;

boost::filesystem::path p(foo.w_str());