0

我有一个在文件系统的一部分中搜索文件的应用程序。用户应该在编辑框中输入文件的名称,然后我将其值分配给UnicodeString变量。我怎样才能将其转换为boost::filesystem::path呢?

4

1 回答 1

0

使用 的w_str()方法UnicodeString检索一个wchar_t *

UnicodeString foo = Edit1->Text;

boost::filesystem::path p(foo.w_str());
于 2011-04-15T20:47:47.300 回答