Active Template Library - History and Use

History and Use

Controls for the Internet market could have been made with the Microsoft Foundation Classes (MFC), but the market requires controls to be small and compact for downloading over the network from Web servers. MFC applications tend to be large and require support DLLs. ATL allows creating smaller controls without support DLLs, so ATL is in a sense a lightweight alternative to MFC for the COM control environment.

A common use of ATL in Active Server Pages (ASP) is to construct objects that can be called from a script. While limited in certain respects, VBScript is able to call C++ Windows code contained in a COM object. In ATL version 7 (Visual Studio 2003), which directly succeeded version 3 (Visual Studio 6.0), a number of MFC classes like CString have been made available in ATL, or more precisely have been moved to an ATLMFC common layer which is shared by both libraries. ATL version 7 also introduced attributes in C++ using numerous behind the scene tricks (macros, even registry entries) in an attempt to provide something similar to CLI attributes, however these have not been particularly successful, and have been deemphasized in ATL version 8 (Visual Studio 2005); the various wizards no longer generate them by default. Version 7 also introduced new string conversion classes, which unlike their entirely-macro-based predecessors balance safety and performance: the stack allocation for the converted string is now limited to a size specified at compile-time (via a template parameter) and above that watermark heap allocation is performed.

On July 28, 2009, Microsoft released a patch to ATL to fix a bug that could allow ActiveX controls created using ATL to be vulnerable to a remote code execution security flaw.

Read more about this topic:  Active Template Library

Famous quotes containing the words history and and/or history:

    History and experience tell us that moral progress comes not in comfortable and complacent times, but out of trial and confusion.
    Gerald R. Ford (b. 1913)

    Every generation rewrites the past. In easy times history is more or less of an ornamental art, but in times of danger we are driven to the written record by a pressing need to find answers to the riddles of today.... In times of change and danger when there is a quicksand of fear under men’s reasoning, a sense of continuity with generations gone before can stretch like a lifeline across the scary present and get us past that idiot delusion of the exceptional Now that blocks good thinking.
    John Dos Passos (1896–1970)