Chapter Summary

 < Free Open Study > 



The goal of this chapter was to introduce you to the basic process of building an ATL COM server. ATL projects begin by accessing the ATL COM AppWizard, which provides support for your component housing. CComModule is the ATL class that encapsulates the inner details common to EXE and DLL servers. The object map is used by CComModule to register and create your coclass, and contains an entry for each COM object contained in the server.

The ATL Object Wizard is used to insert coclasses into a component house. In this chapter, we examined a Simple Object and took a look at the basic functionality provided by the framework. CComObjectRootEx<> and its base class CComObjectRootBase provide the basic hooks for your IUnknown implementation. CComCoClass<> defines a default class factory for your coclass, as well as defines how your coclass will behave as an aggregate. In the next several chapters, we will take a look at exactly how ATL provides this support.

Finally, we examined a set of CASE tools that can help make your ATL development even easier. New interfaces can be added to an existing ATL coclass using the Implement Interface Wizard. Properties and methods may be added to existing interfaces using the Add Property and Add Method tools, respectively.



 < Free Open Study > 



Developer's Workshop to COM and ATL 3.0
Developers Workshop to COM and ATL 3.0
ISBN: 1556227043
EAN: 2147483647
Year: 2000
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net