get enum declarator to string
Hi,
is it possible to get the declarator name of an enum, for example :
enum day {
monday,
tuesday
};
and
day today=monday;
CString dayname=howto?( today );
so that "dayname" is "monday"??
I don“t want to use extra arrays with the names for exisiting big enums that i use in my programs, but want the names to show for status info..
I think that there must be a way to do this, cause for example the VS variable viewer can show during debugging the "names" for variables of type enum..
thanks,
Siggi
PS: sorry for the broken english.. :-(