April 2002
Beginner
413 pages
10h 46m
English
If you've ever used ATL in Visual C++ 6.0, you know that even an ATL Simple Object has a myriad of different components, such as derived classes, structures, maps, registry scripts, and macros. Even the smallest mistake could take a long time to hunt down and find. Listing 15.1 shows the ATL 3.0 code generated when adding an ATL Simple Object.
1: // testobj.h : Declaration of the CTestobj 2: 3: #pragma once 4: #include "resource.h" // main symbols 5: 6: #include "test.h" 7: 8: 9: // Ctestobj 10: 11: class ATL_NO_VTABLE CTestobj : 12: public CComObjectRootEx<CComSingleThreadModel>, 13: public CComCoClass<CTestobj, ... |
Read now
Unlock full access