Effective COM
50 ways to improve your COM and MTS-based applications
Don Box, Keith Brown, Tim Ewald, Chris Sells - Collection Object technology series
Résumé
and Chris Sells, offer 50 concrete guidelines for creating COM based
applications that are more efficient, robust, and maintainable. Drawn
from the authors' extensive practical experience working with and
teaching COM, these rules of thumb, pitfalls to avoid, and
experience-based pointers will enable you to become a more
productive and successful COM programmer.
These guidelines appear under six major headings: the
transition from
C++ to COM; interfaces, the fundamental element of
COM
development; implementation issues; the unique concept of
apartments;
security; and transactions. Throughout this book, the
issues unique to
the MTS programming model are addressed in detail.
Developers will
benefit from such insight and wisdom as:
- Define your interfaces before you define your classes
(and do it in IDL)
- Design with distribution in mind
- Dual interfaces are a hack. Don't require people to
implement them
- Don't access raw interface pointers across partment
boundaries
- Avoid creating threads from an in-process server
- Smart Interface Pointers add at least as much
complexity as they remove
- CoInitializeSecurity is your friend. Learn it, love it,
call it
- Use fine-grained authentication
- Beware exposing object references from the middle of a
transaction hierarchy
- Don't rely on JIT activation for scalability
and much more invaluable advice.
For each guideline, the authors present a succinct summary of the challenge at hand, extensive discussion of their rationale for the advice, and many compilable code examples. Readers will gain a deeper understanding of COM concepts, capabilities, and drawbacks, and the know-how to employ COM effectively for high quality distributed application development. A supporting Web site, including source code, can be found at http://www.develop.com/effectivecom.
L'auteur - Don Box
Don Box is a co-founder of DevelopMentor, a developer services company that provides education and support to the software industry at large. Don's research interests include component software integration, programming for concurrency, and XML-based serialization and metadata protocols. Don is also a co-author of the Simple Object Access Protocol specification and a member of the W3C Schemas Working Group. Don is the best-selling author of three Addison-Wesley titles.
L'auteur - Chris Sells
Chris Sells in an independent consultant, speaker and
author specializing in distributed applications in .NET and
COM. He's written several books and is currently working on
Windows Forms for C# and VB.NET Programmers and Mastering
Visual Studio .NET. In his free time, Chris hosts various
conferences, directs the Genghis source-available project,
plays with Rotor and, in general, makes a pest of himself
at Microsoft design reviews. More information about Chris,
and his various projects, is available at
http://www.sellsbrothers.com
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Don Box, Keith Brown, Tim Ewald, Chris Sells |
Collection | Object technology series |
Parution | 04/01/1999 |
Nb. de pages | 224 |
EAN13 | 9780201379686 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse