Convert CString to char for use in Switch
Posted on 2003-12-06
I know that I can't use a CString in a switch statement, but I only need to do a comparison against the first letter of the string. I can not figure out how to take the letter from the CString and put it into a char so I can use it in switch statement.
This seems like a simple thing to do, but all searches on CString and char pull up char pointers and that is what I am trying to get away from.
Thanks in advance.