titanandrews
Programmer
Hi,
I have something like this in a header file:
and I want to access these from a function in my .cpp file.
If I do this:
it works! But I want to fully qualify the name without using "using namespace"
I tried
CString strTmp(MY_STUFF::THING_A); but compiler complains, "
error C2589: 'string' : illegal token on right side of '::'"
Any idea?
many thanks,
Barry
I have something like this in a header file:
Code:
namespace MY_STUFF
{
#define THING_A "A thing"
#define THING_B "Another thing"
}
If I do this:
Code:
void MyFunc()
{
using namespace MY_STUFF;
CString strTmp(THING_A);
}
I tried
CString strTmp(MY_STUFF::THING_A); but compiler complains, "
error C2589: 'string' : illegal token on right side of '::'"
Any idea?
many thanks,
Barry