How we did it:
For any feedback, any questions, any notes or just for chat - feel free to follow us on social networks
Shows developers how COM operates and how to use it to create efficient and stable programs consistent with the COM philosophy, allowing disparate applications and components to work together across a variety of languages, platforms, and host machines. Original. (Advanced).
In Effective COM, the authors, Don Box, Keith Brown, Tim Ewald, 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 apartment 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. 0201379686B04062001
OLE is a unified and extensible environment of object-based services with the overall purpose of enabling rich integration between components. As Microsoft's object technology, it represents major innovations in object-based programming, making it possible to create applications and software components with unprecedented capabilities. But with this power comes additional complexity and new programming paradigms. Inside OLE provides both a clear tutorial and a strong set of example programs, giving you the tools to incorporate OLE into your own development projects. Written by a member of the Microsoft OLE team, this book truly gives you the insider's perspective on the power of OLE for creating the next generation of innovative software. Inside OLE provides detailed coverage and reference material on OLE and object fundamentals: Objects and interfaces, connectable objects, custom components and the Component Object Model, and Local/Remote Transparency; storage and naming technologies: Structured storage and compound files, persistent objects, and naming and binding; data transfer, viewing, and caching: Uniform Data Transfer, viewable objects, data caching, OLE Clipboard, and OLE Drag and Drop; OLE Automation and OLE Property: Automation controllers; property pages, changes, and persistence; OLE Documents: OLE Documents and embedding containers; OLE Documents and local embedding servers; in-process object handlers and servers; linking containers; and in-place activation (visual editing) for containers and objects; and OLE Controls and the future of OLE: OLE Controls, future enhancements, and component software. If you're interested in fully exploring and understanding OLE and component software, there's no better source than Inside OLE.