As palbano told me I coul manage that every instance of this class has automatically this constant inside.
Bu I also want to have a constant array, readonly. For example like that:
class cTest
{
public:
cTest():NUM_PROTOCOLS(2){}
const int NUM_PROTOCOLS;
static const LPCTSTR Protocol[2];
};
palbano wrote me to put the following line in a .cpp file
LPCTSTR const cTest:
rotocol[2] = {"TCPIP","MATIP"};
But I didnt find a way to make it work. Are there details I should look at? Could someone help me?
Bu I also want to have a constant array, readonly. For example like that:
class cTest
{
public:
cTest():NUM_PROTOCOLS(2){}
const int NUM_PROTOCOLS;
static const LPCTSTR Protocol[2];
};
palbano wrote me to put the following line in a .cpp file
LPCTSTR const cTest:
But I didnt find a way to make it work. Are there details I should look at? Could someone help me?