Chapter 4, "Objects in ATL," discussed how ATL implements IUnknown, but it covered only AddRef and Release completely. This chapter takes a look first at the requirements that COM makes on an object's implementation of QueryInterface and then at how ATL supports those requirements while still providing flexibility and extensibility. |