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.




ATL Internals. Working with ATL 8
ATL Internals: Working with ATL 8 (2nd Edition)
ISBN: 0321159624
EAN: 2147483647
Year: 2004
Pages: 172

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net