0
我正在使用winforms VC++。轉換Combobox項目到字符指針
String ^getSelectedFromCmbobox(){
String ^selected = this->combobox->SelectedItem->ToString();
return selected;
}
在MyForm.h文件:
我被選定的組合框項目。我想獲取seleceted項目的名稱並用另一個字符串(「\\。\」)連接,並將其用作char *
參數。
我該怎麼做?
由於它包含^符號,因此很難在Google中搜索,請原諒它是否重複。
這不是C++,它是託管C++ – 2014-10-17 08:59:12
是的,我知道它。無論如何不是嗎? – Bhoke 2014-10-17 09:03:00