Fippy_Darkpaw
asked on
MFC/C++: convert combo box entry to cstring / int
I need to convert the currently selected item from a combo box into a cstring, int, and float. What's the best way?
For example,
int selectedIndex = myComboBox.GetCurSel();
// convert to string, int, and float, these don't work
CString dataString = myComboBox.GetItemData(sel ectedIndex );
int dataInt = myComboBox.GetItemData(sel ectedIndex );
float dataFloat = myComboBox.GetItemData(sel ectedIndex );
For example,
int selectedIndex = myComboBox.GetCurSel();
// convert to string, int, and float, these don't work
CString dataString = myComboBox.GetItemData(sel
int dataInt = myComboBox.GetItemData(sel
float dataFloat = myComboBox.GetItemData(sel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.