Beginning MFC COM Programming
What's Special About this Book?
Learn how COM works in practiceCreate real world OLE servers and clientsStep-by-step projects with full explanationsUses MFC and Wizard support for fast resultsCreate working ActiveX controls
Programmers are in a dilemma. They must learn COM to stay abreast of the developments in Windows, but it's notoriously hard to understand and use COM in its raw form. MFC shields developers from the more arcane parts of COM and allows them to focus on building real applications. This is the first book dedicated to teaching MFC programmers what COM is and how to use it. It follows the proven 'learn by doing' format of Wrox Beginning Guides, and during the course of the book the reader develops a complete application from OLE servers and components.
Who is this Book For?
The book is aimed at Visual C++ developers who have an understanding of MFC application programming, but have yet to make the leap into COM. To aid understanding, it introduces and describes the lower level of COM in broad terms, but this book certainly isn't for those seeking a reference to that subject. Rather, it works through the excellent support that MFC provides to make it possible to write real COM-enabled applications as efficiently as possible. Beginning MFC COM Programming is an ideal second book for anyone who has read Ivor Horton's Beginning Visual C++ and been intrigued by the introductory material on these subjects contained therein.
What Does it Cover?
This book uses the 'Ole' classes in MFC along with the Wizards in Visual C++ to create COM-enabled applications, complete OLE servers and ActiveX controls. It begins with an introduction to all these technologies ingeneral terms, and then progresses to a more detailed investigation of COM, the technology that enables inter-object communication. This is explained in functional terms, highlighting where and why it's useful. A simple Automation example programmed in raw COM is then compared and contrasted with the same example using VC++, to show how much easier the process is made by the tools VC++ provides.
The MFC 'Ole' classes are introduced and explained in detail as and when they are required by the discussion at hand, and then listed in full in an appendix. During the course of the book, they're used first in the creation of an elementary OLE server. The author then progresses through the complete COM support in MFC, showing how to add Automation features to the server, and then how to create a container and client application. By the end of the book you'll have created a complete component-based reporting and graphing client.
What people are saying - Write a review
We haven't found any reviews in the usual places.
Active document server ActiveX controls added AppWizard argument Automation methods Automation object Automation server base class BOOL BSTR button called CCmdTarget CDatum chapter class factory ClassWizard Click client item clipboard CLSID COleClientltem COleServerDoc COleServerltem combo box compound document const constructor create data member dataset default define dialog dispatch interface dispatch map dispID display DocObjects document class drag and drop dual interface edit control entry error event GraphSrv handle handler header file HRESULT IDispatch implement in-place active Insert interface map Invoke IUnknown linked look macro member functions menu message maps methods and properties Microsoft mouse NULL option parameters pDoc pointer provides rectangle reference counting registry retrieve return TRUE serialization server item smart pointer string structured storage there's type library variable VARIANT Visual Basic Visual C++ void vtable Windows Word 97 WordBasic