Shared Classes
with MFC
The Supports MFC check box on the ATL Project
Wizard was always a temptation to the ATL 3 developer. We generally
didn't want the doc/view architecture, or windowing classes, or
print preview framework, but we were sometimes willing to pay the
price for them for the useful little utility classes,
CString being first among them.
Thankfully, Microsoft has heard the ATL
developer's pain. As of ATL 7, the classes in Table C.1 are all available for use in both
MFC and ATL projects, without
having to drag the rest of MFC along with them.
Table C.1. Shared MFC and ATL
Classes
CFileTime
|
CFileTimeSpan
|
CImage
|
COleDateTime
|
COleDateTimeSpan
|
CPoint
|
CRect
|
CSize
|
CTime
|
CTimeSpan
|
CString
|
|
Several new classes also are used in
implementation or customization of CString. The
CString class itself is now a template, CStringT,
that can be parameterized by character type.
|