I have an enumerated type such as
enum Colors(Red, Blue, Green);
and a CString test_string = "Blue"
How do I get to the 2nd value in the enumerated type by the string?
What I am trying to get to is:
int retValue = Colors(test_string);
or something like that that will produce retValue = 1
enum Colors(Red, Blue, Green);
and a CString test_string = "Blue"
How do I get to the 2nd value in the enumerated type by the string?
What I am trying to get to is:
int retValue = Colors(test_string);
or something like that that will produce retValue = 1