Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在文件系统的一部分中搜索文件的应用程序。用户应该在编辑框中输入文件的名称,然后我将其值分配给UnicodeString变量。我怎样才能将其转换为boost::filesystem::path呢?
UnicodeString
boost::filesystem::path
使用 的w_str()方法UnicodeString检索一个wchar_t *
w_str()
wchar_t *
UnicodeString foo = Edit1->Text; boost::filesystem::path p(foo.w_str());