What is the difference between CString in vc6 and vc7?

What is the difference between CString in vc6 and vc7?

+1


source to share


1 answer


CString was removed from MFC in VC7 so that it can be used in both MFC projects and ATL. The architecture has completely changed:

  • In VC6, CString did not have a base class. In VC7, the base class is CStringT <TCHAR>, which comes from CSimpleStringT <TCHAR>.
  • In VC7, you also get CStringA and CStringW for explicit char and wchar_t strings.


I don't know of any difference in behavior between the two, but the documentation is much easier to use in VC6. The methods are scattered among the base classes in VC7.

+4


source







All Articles