7
7777777.chen
Is it true that VC++ doesn't support switch on string data type?
Did anyone know how to handle the following situation?
(1) System::String* s_TC =
treeview->Nodes->Item->Nodes->Item[j]->Text;
or
(2) std::string s_TC =
string_to_charP(treeview->Nodes->Item->Nodes->Item[j]->Text);
Switch (s_TC) {
case "TC_1":
break;
case "TC_N":
break;
..
..
}
Both (1) and (2) all have compile error.
Thanks.
Did anyone know how to handle the following situation?
(1) System::String* s_TC =
treeview->Nodes->Item->Nodes->Item[j]->Text;
or
(2) std::string s_TC =
string_to_charP(treeview->Nodes->Item->Nodes->Item[j]->Text);
Switch (s_TC) {
case "TC_1":
break;
case "TC_N":
break;
..
..
}
Both (1) and (2) all have compile error.
Thanks.