0
我有在filesystem.The一部分用戶搜索文件的應用程序應該進入在編輯框中鍵入一個文件,這樣我指定其值設置爲UnicodeString
variable.How的名字就可以了我轉換爲boost::filesystem::path
然後?如何C++ Builder中的UnicodeString和提升字符串之間進行轉換?
我有在filesystem.The一部分用戶搜索文件的應用程序應該進入在編輯框中鍵入一個文件,這樣我指定其值設置爲UnicodeString
variable.How的名字就可以了我轉換爲boost::filesystem::path
然後?如何C++ Builder中的UnicodeString和提升字符串之間進行轉換?
使用的UnicodeString
的w_str()
方法檢索wchar_t *
UnicodeString foo = Edit1->Text;
boost::filesystem::path p(foo.w_str());
http://stackoverflow.com/q/394564/471164可以幫助 – vitaut 2010-12-15 10:43:01