You can do is something like this:
class CMyClass
{
static char const __CLASS__[];
...
void DisplayMyName();
}
...
char const CMyClass::__CLASS__[] = "CMyClass";
However in this case, __CLASS__ is not a macro and the value is not available at compile time. You can't do compile-time string concatenation.