Active Template Library

维基百科,自由的百科全书

跳转到: 导航, 搜索

Active Template Library (ATL,又译作“活动模板库”) 是一個以C++模板技術的類別的集合,由Microsoft為了簡化Component Object Model (COM) 的程式設計所散佈。 COM支援在Visual C++允許開發者創造各種各樣的元件,OLE Automation伺服器,與ActiveX控制項。[1] [2] Patterned after the Standard Template Library (STL), ATL 包含一個物件精靈(object wizard),當設定好主要的物件結構後,能夠產生快速與較小的程式。


通过Microsoft Foundation Classes可以提供互联网市场所需的控件,但是市场上还需要可以从网络上下载的轻量级空间。MFC程序通常较大而且需要支持DLL。 [3] ATL允许创建不需要支持DLL的更小的控件,所以ATL是一种在COM控件环境下MFC的轻量级替代物。

[编辑] 相關條目

[编辑] 參考資料

  1. ^ Grimes, Richard(1998).“ATL and COM”,ATL COM,1st edition,Wrox Press,pg. 6.ISBN 1-86100-249-1 
  2. ^ Grimes, Richard(1999).“Building and calling a COM object using ATL”,Beginning ATL 3 COM Programming,1st edition,Wrox Press,pg. 63.ISBN 978-1-86100-120-7 
  3. ^ Williams, Mickey(2000).“Active Documents”,Visual C++ 6 Unleashed,1st edition,Sams,pg. 733.ISBN 978-0-672-31241-0 
个人工具