i am new to c++ so i think this is a silly question, but i'm a little confused.
i am populating a TCHAR string.
this works :
TCHAR StrData[] = _T("TextInformation");
i want to declare StrData globally, so have used
__declspec(selectany) TCHAR StrData[];
in a header file and include it where needed.
but how do i now populate the StrData field
StrData[] = _T("TextInformation"); //fails with a syntax error ]
StrData[15] = _T("TextInformation");//Error 1 error C2440: '=' : cannot convert from 'const wchar_t [11]' to 'TCHAR'