Developers Workshop to COM and ATL 3.0

 < Free Open Study > 


Objectives:

Although the previous chapter got you up and running with the ATL environment, this chapter will begin to drill down into the architecture of the ATL framework in greater detail. We begin this chapter with an overview of multithreaded programming, and quickly see how the concept of numerous paths of execution in a Win32 process can affect the COM developer. Next, we examine the options ATL provides to equip your coclasses to run within single-threaded and multithreaded apartments.

We will then examine the derivation of an ATL Simple Object and learn about the functionality supplied by CComObjectRootBase, CComObjectRootEx<>, and CComCo- Class<>. During this process, we will understand how ATL provides support for IUnknown, learn about the inner workings of the ATL COM map, and investigate the various CComObject<> templates. We wrap up this chapter by learning how a coclass can return rich error information to both C++ and Visual Basic COM clients.


 < Free Open Study > 

Категории