目前分類:c++ 實戰常用技巧 (3)

瀏覽方式: 標題列表 簡短摘要

今天要跟大家分享的是如何從檔案路徑提取檔名

可以利用openFileDialog抓取路徑後使用

並且也移除附檔名

 

文章標籤

興趣使然的開箱 發表在 痞客邦 留言(0) 人氣()

形態上的轉換

1. String to Char

呼叫string裡的c_str()即可

ex:

string exa;

文章標籤

興趣使然的開箱 發表在 痞客邦 留言(0) 人氣()

System::String 和 std::string

1.std::string to System::String^
 
//將 std::string 轉 System::String^,os 是 std::string
String^ str = gcnew String(os.c_str());

2.System::String 轉 std::string               comboBox是System::String!!!!

文章標籤

興趣使然的開箱 發表在 痞客邦 留言(0) 人氣()