I must be missing something really obvious here; I want to name a set of string literals so that I can refer to them by name subsequently. In Ye Olde Days of C it would probably have been with a
#define LINK_BASE_URL “http://www.kfs.org/”
And then in C++
static const char* baseUrl = “http://www.kfs.org/” ;
Right now I’m experimenting with Managed C++ (yes, that is the right choice for this scenario) but I can’t seem to find a painless way of simply naming a string literal. I don’t want the same string constant repeated over and over.