Skip to main content

An ATL Primer

  • Chapter
C++ for VB Programmers
  • 355 Accesses

Abstract

In previous chapters of this book we saw how to create Windows DLLs with C++. We also saw a sample application of how to integrate DLLs written in C++ with applications written in Visual Basic. This ability to encapsulate functions into DLLs and use them from Visual Basic is very powerful indeed, and in many cases, the best solution to a programming problem. However, the current state (and foreseeable future) of the Microsoft world, and therefore the Visual Basic world, is the Component Object Model (COM). As evidence of this, the Windows 2000 operating system has started to transition some of its application program interface (API) from a set of functions exported from DLLs to a set of COM objects exposing the same functionality. In this chapter and the next, we learn how to use the Active Template Library (ATL) to create COM objects in C++, which can be used from Visual Basic. I will also cover the basic concepts of COM ideology and implementation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Jonathan D. Morrison

About this chapter

Cite this chapter

Morrison, J. (2000). An ATL Primer. In: C++ for VB Programmers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0858-7_11

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0858-7_11

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-893115-76-7

  • Online ISBN: 978-1-4302-0858-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics