home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / allinone / allinone.txt next >
Encoding:
Text File  |  1998-04-03  |  1.4 KB  |  35 lines

  1. ALLINONE:  Implements a server using ATL, exposing STL collections, controlled by
  2. compiler COM support in an MFC App
  3.  
  4. This sample shows the ability of ATL/STL/VCCOM/MFC to coexist.  Building on the collect
  5. MFC example, nine collections are implemented in STL -- using map, multimap, list, vector, deque 
  6. and set -- which are exposed as custom interfaces using ATL with multiple types of aggregation.  
  7. The MFC controller uses compiler COM support.
  8.  
  9. Compare this sample with COLLECT in samples\mfc\advanced.
  10.  
  11. Running the sample:
  12.  
  13. The Server:
  14.     1.  Build stlcoll.dll/stlcoll.exe using the stlcoll project in samples\com\allinone\server.
  15.     2.  Self-registration should take place in the custom build step -- otherwise run:
  16.         regsvr32 stlcoll.dll
  17.     or
  18.         stlcoll /RegServer
  19.  
  20. The Proxy/Stub DLL:
  21.     1.  Build stlcollps.dll using the stlcoll project in samples\com\allinone\server.
  22.         This is only needed when stlcoll.exe is out-of-proc.
  23.     2.  Self-registration should take place in the custom build step -- otherwise run:
  24.         regsvr32 stlcoll.dll
  25.  
  26. The Controller:
  27.     1.  Build collect.exe using the collect project in samples\com\allinone\collect.
  28.  
  29.  
  30. This sample demonstrates the following key words:
  31.  
  32.     custom interface, ATL, STL, map, vector, set, multimap, list, deque, _com_ptr_t, _bstr_t,
  33.     _com_error, aggregation, tearoff interface
  34.  
  35. See all Compiler COM Support and MFC collect sample and ?? stl and atl docs ??