Classes Shared by MFC and ATL

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Classes Shared by MFC and ATL.

The following table lists the classes shared between MFC and ATL.

ClassDescriptionHeader file
CFileTimeProvides methods for managing the date and time values associated with a file.atltime.h
CFileTimeSpanProvides methods for managing relative date and time values associated with a file.atltime.h
CFixedStringTRepresents a string object with a fixed character buffer.cstringt.h
CImageProvides enhanced bitmap support, including the ability to load and save images in JPEG, GIF, BMP, and Portable Network Graphics (PNG) formats.atlimage.h
COleDateTimeEncapsulates the DATE data type used in OLE automation.atlcomtime.h
COleDateTimeSpanRepresents a relative time, a time span.atlcomtime.h
CPointA class similar to the Windows POINT structure that also includes member functions to manipulate CPoint and POINT structures.atltypes.h
CRectA class similar to a Windows RECT structure that also includes member functions to manipulate CRect objects and Windows RECT structures.atltypes.h
CSimpleStringTRepresents a CSimpleStringT object.atlsimpstr.h
CSizeA class similar to the Windows SIZE structure, which implements a relative coordinate or position.atltypes.h
CStrBufTProvides automatic resource cleanup for GetBuffer and ReleaseBuffer calls on a existing CStringT object.atlsimpstr.h
CStringDataRepresents the data of a string object.atlsimpstr.h
CStringTRepresents a CStringT object.cstringt.h (MFC dependent) atlstr.h (MFC independent)
CTimeRepresents an absolute time and date.atltime.h
CTimeSpanAn amount of time, which is internally stored as the number of seconds in the time span.atltime.h
IAtlStringMgrRepresents the interface to a CStringT memory manager.atlsimpstr.h

ATL/MFC Shared Classes

Show: