Have one to sell? Sell yours here
ATL Internals
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

ATL Internals [Paperback]

Brent E. Rector (Author), Chris Sells (Author)
4.5 out of 5 stars  See all reviews (58 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for Students. Learn more

There is a newer edition of this item:
ATL Internals: Working with ATL 8 (2nd Edition) ATL Internals: Working with ATL 8 (2nd Edition) 4.0 out of 5 stars (2)
$36.35
In Stock.

Book Description

0201695898 978-0201695892 March 31, 1999
"This book is the definitive reference for ATL programmers. The chapter on CComObject is worth the price alone."--Don Box, COM guy, DevelopMentor"Brent and Chris are always technically accurate and present the information in a well written, easy to understand manner...I bought it and I'm the ATL Development Lead!"--Christian Beaumont, ATL Development Lead, Microsoft Corporation The Active Template Library (ATL) is a set of small, efficient, and flexible classes that facilitate the creation of interoperable COM components. Written for experienced COM and Visual C++ programmers, this book provides in-depth coverage of ATL's inner workings. It offers insight into the rationale behind ATL design, explains its architectural underpinnings, shows how ATL maps to COM, and describes important implementation details. With coverage current through ATL version 3.0, ATL Internals includes an overview of the Wizards but then goes well beyond the basics. The authors provide the detailed information needed to utilize ATL to its greatest advantage and work around its shortcomings.You will find detailed coverage of such topics as: *ATL Smart Types, such as CComPtr, CComVariant, and CComBSTR *Objects in ATL, covering COM object responsibilities and ATL threading model support *Servers in ATL, including ATL's class object implementations, managing server lifetime, self-registration, and server build optimizations *Interface maps, focusing on the techniques C++ programmers can use to implement COM interfaces and how ATL supports these techniques *Persistence and connection points *Enumeration, covering both pre-calculated and dynamic data sets, and enumerating over an STL container *ATL windowing classes *Controls and Control Containment If you want to optimize ATL by learning effective techniques that reduce the time you spend writing boilerplate COM code, there is no better resource than this book. 0201695898B04062001


Editorial Reviews

Amazon.com Review

Written for the advanced C++ programmer, ATL Internals reveals the inner workings of the Active Template Library (ATL), the toolkit of choice for building today's lightweight Internet and server components.

The book begins with a tour of the ATL code generated by the Microsoft Visual C++ 6 AppWizard. The authors introduce fundamental ATL programming issues here, but they do not provide a general introduction to COM or ATL; they assume that readers have a good deal of background in both C++ and COM.

The book focuses on the extremely useful ATL support classes for managing strings (BSTRs), variants, and smart pointers. It covers the classes that help instantiate COM components (and examines support for different threading models and "creator" classes). The guide continues with object internals--covering object maps and the classes used to manage them--and interfaces, including aggregates and various interface design options. Information on ATL's support for persistence, which lets objects save and restore their state; on how ATL supports basic containers; and on interfaces that work with the Standard Template Library (STL) in C++ is well done.

Later sections explain how to work with windows and ActiveX controls. After some material on events (and connection points), the authors reveal ATL support for basic window operations, including dialogs. For building a custom ActiveX control, the authors provide an excellent example of a nicely functional visual control. (This code will prove invaluable since it illustrates all the essentials of ATL component programming.) --Richard Dragan

Review





"I've often thought that I should write a book on how ATL works. After reading ATL Internals, I don't think there would be much left for me to write about." — Jim Springfield, Inventor of ATL, Microsoft Corporation

"This book is the definitive reference for ATL programmers. The chapter on CcomObject is worth the price alone." — Don Box, COM guy, DevelopMentor

"Brent and Chris are always technically accurate and present the information in a well written, easy to understand manner... I bought it and I'm the ATL Development Lead! " — Christian Beaumont, ATL Development Lead, Microsoft Corporation


Product Details

  • Paperback: 656 pages
  • Publisher: Addison-Wesley Professional (March 31, 1999)
  • Language: English
  • ISBN-10: 0201695898
  • ISBN-13: 978-0201695892
  • Product Dimensions: 9.1 x 7.4 x 1.5 inches
  • Shipping Weight: 2.4 pounds
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (58 customer reviews)
  • Amazon Best Sellers Rank: #1,393,621 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

58 Reviews
5 star:
 (48)
4 star:
 (3)
3 star:    (0)
2 star:    (0)
1 star:
 (7)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (58 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

8 of 8 people found the following review helpful:
5.0 out of 5 stars Don't do ATL or COM without it, May 5, 2002
This review is from: ATL Internals (Paperback)
This is simply one book that you do not want to be without when designing and implementing a COM project. I purchased the book after I found myself in my first COM project and without any coworkers with any experience in this area. As a comment, I've also rummaged around the Internet and purchased many other books in the effort to come up to speed as quickly as I can. ATL Internals is the best source of data on ATL that I've found so far.

ATL Internals not only discusses ATL but also does an excellent job discussing COM's theory of operation and how a Win32 OS supports COM.

As a warning, however, ATL Internals isn't the only book that you need on a COM project because it is specialized on ATL (and on COM in general). While ATL is useful it is not the only thing that you will have to deal with on a COM project. You will probably need to work with IDL files and for that I can unequivocally recommend "Essential IDL" by Martin Gudgin.

ATL Internals accomplishes several things well; I will try to describe the most valuable aspects of this book. One of the best properties of this book is that it is thorough. It covers ATL in depth.

The following is a partial list of the material in ATL Internals:

1) ATL Internals covers using the wizards and explains how to proceed beyond the point where the wizards quit.
2) A though discussion of ATL facilities. For example: CComPtr (a COM smart pointer) and CComBSTR (a class wrapped around the error-prone BSTR datatype) classes are covered in detail. The text conversion macros are completely covered here. In other books and on the internet I saw code examples that used them but will little explanation.
3) Bug warnings: both your (potential) bugs and bugs within ATL. The authors point out the buggy parts of ATL and they invest the necessary effort to warn about about aspects of ATL that, if naively used, create bugs in your code. Numerous pages are dedicated to showing both how to correctly use certain hazardous parts of ATL as well as examples of buggy code. Depreciated techniques are also described for completeness.
4) Discussion and examples of various COM issues, including threading issues, connection points, the Service Control manager (SCM)and so on.
5) Detailed discussion of the numerous macros that Microsoft uses to conceal substantial code, (e.g. BEGIN_OBJECT_MAP, COM_INTERFACE_ENTRY_IMPL, etc.)
6) One of the appendixes shows a cross reference between ATL classes and header file names. This was a welcome convenience (yes I could have greped, but this is quicker)

ATL Internals not only has great content but it is written in a very readable style. The typeset is easy to read and the diagrams are well done.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 5 people found the following review helpful:
5.0 out of 5 stars Simply the best! Five stars, no doubts!, October 10, 1999
By 
Stan Danilov (Dublin, Ireland (born in Russia)) - See all my reviews
This review is from: ATL Internals (Paperback)
"ATL INTERNALS" is a superb source of information about how ATL works. If you want to be a pro in ATL then go and buy it.

I read it TWICE. Never before anything like that ever happened to me!

Well done, lads! Thanks!

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 4 people found the following review helpful:
5.0 out of 5 stars Very professional book, August 16, 1999
By A Customer
This review is from: ATL Internals (Paperback)
This book covers ATL Internals in a very professional and essential way.I would recommend to read this book only after dealing with simple COM objects , and getting familiar with this technology. I read it after i have finished to read "Inside COM (MS press )" and it is a good order. This book is very recommended for professional programmers.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject