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 >
Wrap
Text File
|
1998-03-26
|
722b
|
15 lines
CIRCCOLL
This sample shows how to implement a collection/enumeration of objects using ATL and STL. Three object
classes are implemented: the collection creator, the collection, and the object inside the collection.
Only the collection creator has a CoClass associated with it (see CIRCCOLL.IDL for details). The collection
creator has a method to return a collection of "circle" objects. The collection object implements the
"Item()", "Count()" and "_NewItem()" methods, so that the object can be manipulated from VB using both the
For ... Next and For Each ... syntax.
HOW TO RUN IT:
Build CIRCOLL.DLL and make sure it is registered. Load the .VBP file into VB and run. Press the button to
to activate.