N
Norman Diamond
In an antique obsolete version of MFC, a CString expression could be
subscripted in order to retrieve one element.
Visual Studio 2005 defines CSimpleStringT:perator[]. At first glance it
looks like it might have been intended to provide backwards compatibility
for antique programs. But there seems to be no way to use it.
CString s = _T("ab");
short i = 1;
_TCHAR c = s;
Error C2666, ambiguous overload.
In atlsimpstr.h I find one whole uniguous overload of operator[]. In
cstringt.h I find none. Where is the other one, and is there any way to
overcome it?
subscripted in order to retrieve one element.
Visual Studio 2005 defines CSimpleStringT:perator[]. At first glance it
looks like it might have been intended to provide backwards compatibility
for antique programs. But there seems to be no way to use it.
CString s = _T("ab");
short i = 1;
_TCHAR c = s;
Error C2666, ambiguous overload.
In atlsimpstr.h I find one whole uniguous overload of operator[]. In
cstringt.h I find none. Where is the other one, and is there any way to
overcome it?