This developer's guide to Microsoft's ATL provides detailed coverage of using the new ATL to create COM-based applications. Section topics include ActiveX controls, NT services, moving from MFC to ATL, and non-Windows ATL development.
This guide is a practical manual for COM, with the core architecture of ATL clarified and illuminated with code. Text also develops a full control that can be extended or used directly.
An authoritative guide to programming with Active Template Library (ATL), complete with under-the-hood details and explanations. Visual C++ programmers will learn how to develop components easier and faster by mastering ATL. The CD-ROM supplies programmers with the book's sample code as well as abundant sample controls and components.
This practical, easy-to-understand guide to using Microsoft's COM+ offers end-to-end lifecycle coverage, from application planning through delivery. The authors give extensive examples and sample applications, demonstrating how to brainstorm, organize, implement, and test sophisticated COM+-based distribution applications. The CBT Systems training module is featured on the CD-ROM.
Templates are among the most powerful features of C++, but they remain misunderstood and underutilized, even as the C++ language and development community have advanced. In C++ Templates, Second Edition, three pioneering C++ experts show why, when, and how to use modern templates to build software that’s cleaner, faster, more efficient, and easier to maintain. Now extensively updated for the C++11, C++14, and C++17 standards, this new edition presents state-of-the-art techniques for a wider spectrum of applications. The authors provide authoritative explanations of all new language features that either improve templates or interact with them, including variadic templates, generic lambdas, class template argument deduction, compile-time if, forwarding references, and user-defined literals. They also deeply delve into fundamental language concepts (like value categories) and fully cover all standard type traits. The book starts with an insightful tutorial on basic concepts and relevant language features. The remainder of the book serves as a comprehensive reference, focusing first on language details and then on coding techniques, advanced applications, and sophisticated idioms. Throughout, examples clearly illustrate abstract concepts and demonstrate best practices for exploiting all that C++ templates can do. Understand exactly how templates behave, and avoid common pitfalls Use templates to write more efficient, flexible, and maintainable software Master today’s most effective idioms and techniques Reuse source code without compromising performance or safety Benefit from utilities for generic programming in the C++ Standard Library Preview the upcoming concepts feature The companion website, tmplbook.com, contains sample code and additional updates.
DCOM -- the Distributed Component Object Model -- is a recent upgrade of a time-honored and well-tested technology promoted by Microsoft for distributed object programming. Now that components are playing a larger and larger part in Windows 98, Windows NT 4.0, and Windows 2000, every Windows programmer will want to understand the technology. DCOM competes with CORBA as a rich and robust method for creating expandable and flexible components, allowing you to plug in new parts conveniently and upgrade without the need for code changes to every program that uses your component.This book introduces C++ programmers to DCOM and gives them the basic tools they need to write secure, maintainable programs. While using Visual C++ development tools and wizards where appropriate, the author never leaves the results up to magic. The C++ code used to create distributed components and the communications exchanged between systems and objects are described at a level where the reader understands their significance and can use the insights for such tasks as debugging and improving performance.The first few chapters explain both the remote procedure calls that underlie DCOM's communication and the way DCOM uses C++ classes. Readers become firmly grounded in the relation between components, classes, and objects, the ways objects are created and destroyed, how clients find servers, and the basics of security and threading.After giving you a grounding in how DCOM works, this book introduces you to the Microsoft tools that make it all easy. By showing what really happens each time you choose a button in a wizard, Learning DCOM makes it possible for you to choose what you need.This book is for anyone who wants to understand DCOM. While thoroughly practical in its goals, it doesn't stint on the background you need to make your programs safe, efficient, and easy to maintain.Topics include: MIDL (Microsoft Interface Definition Language, the language for defining COM interfaces) COM error and exception handling Custom, dispatch, and dual interfaces Standard and custom factories Management of in-process versus out-of-process servers Distributed memory management Pragmatic explanation of the DCOM wire protocol Standard, custom, handler, and automation marshaling Multithreading and apartments Security at the system configuration and programming level Active Template Library (ATL), ATL wizards -- and what they don't do Writing a component that can be invoked from Visual Basic Techniques for using distributed components Creating an ActiveX control and embedding it in a Web client Authentication and the use of Windows NT security features Techniques for merging marshaling code Connection and distributed events management An introduction to COM+ features
Microsoft’s Component Object Model is one of the most important concepts in software development today. Developer’s Workshop to COM and ATL 3.0 provides an in-depth treatment of COM and shows how to adopt a component framework, namely ATL, to help lessen the burden of repetitive code. Every chapter contains integrated lab assignments that give you numerous opportunities to build COM clients and servers using raw C++ and IDL, as well as the Active Template Library. The book is divided into five sections, each focusing on a particular aspect of COM and ATL development. The book begins with a review of object-oriented and interface-based programming techniques, then moves into the core aspects of COM, including a full examination of language independence and location transparency. The author illustrates the numerous CASE tools used during ATL development and discusses apartments, COM exceptions, object identity, and component housing, in addition to various advanced concepts such as COM categories and tear-off interfaces. The fourth section examines a number of “COM patterns” such as enumerators, collections, scriptable objects, and callback interfaces. The book closes with an investigation of using ATL as a windowing framework and wraps up with the development of a full-blown animated ActiveX control using ATL. Learn how to build Visual Basic, Java, C++, and web-based COM clients; use common VBA programming structures such as conditions, loops, arrays, and collections; master ATL’s integrated CASE tools; dive into the details of object identity and the ATL COM map; build COM object models and leverage the ATL object map; develop full ActiveX controls with ATL.
Introduces programmers to the generic programming paradigm and to the C++ Standard Template Library and its use as an extensible framework for generic and interoperable components. Explains ideas underlying generic programming and shows how to create algorithms decoupled from the types and data structures they operate on, and how to write more efficient code that can be used and reused across platforms. Assumes familiarity with C++ and algorithms. Annotation copyrighted by Book News, Inc., Portland, OR