I need a way to set value of a int depending on the selection of the combobox. This is in C++ Windows forms.
Like i will have
and if they select Pop from combo box then KO_END = 1;
if soda is selected then KO_END = 2;
I have 50 selections for my combobox.
i tried using
map<string, int> comboMap;
comboMap["bow"] = 120;
comboMap["arrow"] = 63;
KO_END = comboMap[comboBox1->SelectedItem];
but i cant see how to use the map in windwos forms MFC