Click here to Skip to main content
15,890,438 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionwmiatlprov.h documentation? Pin
Lego Bragis11-Jul-05 21:11
Lego Bragis11-Jul-05 21:11 
GeneralHandling ATL COM events in Win32 exe using eVC++ Pin
Gaganjit Singh Grewal11-Jul-05 20:02
Gaganjit Singh Grewal11-Jul-05 20:02 
QuestionCListViewCtrl: how to place background image? Pin
George Ulyanov8-Jul-05 18:02
George Ulyanov8-Jul-05 18:02 
AnswerRe: CListViewCtrl: how to place background image? Pin
Michael Dunn8-Jul-05 18:44
sitebuilderMichael Dunn8-Jul-05 18:44 
GeneralWTL - hosting ActiveX controls Pin
cberk8-Jul-05 12:22
cberk8-Jul-05 12:22 
GeneralRe: WTL - hosting ActiveX controls Pin
cberk8-Jul-05 13:10
cberk8-Jul-05 13:10 
GeneralRe: WTL - hosting ActiveX controls Pin
Michael Dunn8-Jul-05 18:49
sitebuilderMichael Dunn8-Jul-05 18:49 
Question[newbie] subclass std::list? Pin
ehh8-Jul-05 4:08
ehh8-Jul-05 4:08 
hello,

i've created a std::list of objects, and it works well, but i'd like to support additional functionality for the list, such as writing certain aspects of the objects to stdout/cout (or dumping them using TRACE macros), matching certain aspects of objects (i.e., several different "match" functions), populating a list box with objects' names, etc. i've tried 2 approaches:

1. wrap the std::list in a class that handles these functions by using the list's iterators. this is inelegant, so i switched to:

2. subclass my std::list<myobject>, and add the functions i need to the new class. from what i've read on the web, subclassing std::list isn't a good idea, due to the virtual destructor problem.

my guess is that i should be using functions that operate on this list, but creating functions instead of list methods seems to violate the whole point of using c++. i'd appreciate any advice, since this is my first project using the stl, and i'm still waiting for my stl book to arrive in the mail....

ed

AnswerRe: [newbie] subclass std::list? Pin
Stuart Dootson8-Jul-05 7:48
professionalStuart Dootson8-Jul-05 7:48 
QuestionCOPY question??? Pin
Melena7-Jul-05 6:49
Melena7-Jul-05 6:49 
AnswerRe: COPY question??? Pin
Michael Dunn8-Jul-05 18:53
sitebuilderMichael Dunn8-Jul-05 18:53 
GeneralRe: COPY question??? Pin
Melena11-Jul-05 5:59
Melena11-Jul-05 5:59 
GeneralRe: COPY question??? Pin
Melena13-Jul-05 5:39
Melena13-Jul-05 5:39 
GeneralRe: COPY question??? Pin
Michael Dunn14-Jul-05 2:59
sitebuilderMichael Dunn14-Jul-05 2:59 
GeneralComparing STL containers of pointers Pin
Rob Caldecott7-Jul-05 5:24
Rob Caldecott7-Jul-05 5:24 
GeneralRe: Comparing STL containers of pointers Pin
Rob Caldecott7-Jul-05 6:07
Rob Caldecott7-Jul-05 6:07 
GeneralOoops... Pin
Rob Caldecott7-Jul-05 6:33
Rob Caldecott7-Jul-05 6:33 
GeneralOoops... Pin
Jörgen Sigvardsson7-Jul-05 9:56
Jörgen Sigvardsson7-Jul-05 9:56 
GeneralRe: Comparing STL containers of pointers Pin
Stuart Dootson8-Jul-05 7:45
professionalStuart Dootson8-Jul-05 7:45 
GeneralRe: Comparing STL containers of pointers Pin
Axter4-Aug-05 18:28
professionalAxter4-Aug-05 18:28 
Generaldueto Pin
Raudel6-Jul-05 5:49
Raudel6-Jul-05 5:49 
GeneralInitializing STL containers Pin
Rob Caldecott6-Jul-05 5:22
Rob Caldecott6-Jul-05 5:22 
GeneralRe: Initializing STL containers Pin
Michael Dunn6-Jul-05 6:31
sitebuilderMichael Dunn6-Jul-05 6:31 
GeneralRe: Initializing STL containers Pin
Rob Caldecott6-Jul-05 6:39
Rob Caldecott6-Jul-05 6:39 
GeneralRe: Initializing STL containers Pin
Rob Caldecott6-Jul-05 6:41
Rob Caldecott6-Jul-05 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.