
20 vi_progid("HotFixChecker")
21 ]
22 class ATL_NO_VTABLE CHotFixChecker :
23 public IHotFixChecker
24 {
25 public:
26 HRESULT IsHotFixInstalled(BSTR bstrQNumber,
27 VARIANT_BOOL *pbInstalled)
28 {
29 // TODO: Implement Function
30 return S_OK;
31 }
32 };
Twenty-seven lines of code later, we have created a fully functional EXE COM
server, complete with self-registration capability,TypeLib included, and proxy/stub code
ready for compilation.To accomplish the same task without using ATL, the code could
take up to 800 lines. If you look at the file that contains the injected code, it actually
took 318 lines of code to do this with ATL (although the generated file ...