home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / circcoll / circcoll.txt < prev    next >
Text File  |  1998-03-26  |  722b  |  15 lines

  1.  
  2. CIRCCOLL
  3.  
  4. This sample shows how to implement a collection/enumeration of objects using ATL and STL. Three object
  5. classes are implemented: the collection creator, the collection, and the object inside the collection.
  6. Only the collection creator has a CoClass associated with it (see CIRCCOLL.IDL for details). The collection
  7. creator has a method to return a collection of "circle" objects. The collection object implements the
  8. "Item()", "Count()" and "_NewItem()" methods, so that the object can be manipulated from VB using both the
  9. For ... Next and For Each ... syntax.
  10.  
  11. HOW TO RUN IT:
  12.  
  13. Build CIRCOLL.DLL and make sure it is registered. Load the .VBP file into VB and run. Press the button to
  14. to activate.
  15.